23 #ifndef MBEDTLS_BLOWFISH_H 24 #define MBEDTLS_BLOWFISH_H 26 #if !defined(MBEDTLS_CONFIG_FILE) 29 #include MBEDTLS_CONFIG_FILE 35 #define MBEDTLS_BLOWFISH_ENCRYPT 1 36 #define MBEDTLS_BLOWFISH_DECRYPT 0 37 #define MBEDTLS_BLOWFISH_MAX_KEY_BITS 448 38 #define MBEDTLS_BLOWFISH_MIN_KEY_BITS 32 39 #define MBEDTLS_BLOWFISH_ROUNDS 16 40 #define MBEDTLS_BLOWFISH_BLOCKSIZE 8 42 #define MBEDTLS_ERR_BLOWFISH_INVALID_KEY_LENGTH -0x0016 43 #define MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH -0x0018 45 #if !defined(MBEDTLS_BLOWFISH_ALT) 87 unsigned int keybits );
104 #if defined(MBEDTLS_CIPHER_MODE_CBC) 132 const unsigned char *
input,
136 #if defined(MBEDTLS_CIPHER_MODE_CFB) 163 const unsigned char *
input,
167 #if defined(MBEDTLS_CIPHER_MODE_CTR) 191 const unsigned char *
input,
200 #include "blowfish_alt.h" int mbedtls_blowfish_crypt_ecb(mbedtls_blowfish_context *ctx, int mode, const unsigned char input[MBEDTLS_BLOWFISH_BLOCKSIZE], unsigned char output[MBEDTLS_BLOWFISH_BLOCKSIZE])
Blowfish-ECB block encryption/decryption.
Definition: blowfish.c:486
GLenum mode
Definition: glext.h:6857
int mbedtls_blowfish_crypt_cbc(mbedtls_blowfish_context *ctx, int mode, size_t length, unsigned char iv[MBEDTLS_BLOWFISH_BLOCKSIZE], const unsigned char *input, unsigned char *output)
Blowfish-CBC buffer encryption/decryption Length should be a multiple of the block size (8 bytes)
Definition: blowfish.c:515
int mbedtls_blowfish_crypt_ctr(mbedtls_blowfish_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[MBEDTLS_BLOWFISH_BLOCKSIZE], unsigned char stream_block[MBEDTLS_BLOWFISH_BLOCKSIZE], const unsigned char *input, unsigned char *output)
Blowfish-CTR buffer encryption/decryption.
Definition: blowfish.c:617
Configuration options (set of defines)
#define P(a, b, c, d, k, s, t)
GLenum GLenum GLenum input
Definition: glext.h:9938
void mbedtls_blowfish_free(mbedtls_blowfish_context *ctx)
Clear Blowfish context.
Definition: blowfish.c:417
Blowfish context structure.
Definition: blowfish.h:56
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
static const unsigned char iv[]
Definition: ccm.c:364
int mbedtls_blowfish_setkey(mbedtls_blowfish_context *ctx, const unsigned char *key, unsigned int keybits)
Blowfish key schedule.
Definition: blowfish.c:428
#define S(x)
Definition: luac.c:394
#define MBEDTLS_BLOWFISH_ROUNDS
Definition: blowfish.h:39
#define MBEDTLS_BLOWFISH_BLOCKSIZE
Definition: blowfish.h:40
std::string output
Definition: Config.FromFile.cpp:44
int mbedtls_blowfish_crypt_cfb64(mbedtls_blowfish_context *ctx, int mode, size_t length, size_t *iv_off, unsigned char iv[MBEDTLS_BLOWFISH_BLOCKSIZE], const unsigned char *input, unsigned char *output)
Blowfish CFB buffer encryption/decryption.
Definition: blowfish.c:569
GLenum GLuint GLenum GLsizei length
Definition: glext.h:6233
unsigned int uint32_t
Definition: stdint.h:126
void mbedtls_blowfish_init(mbedtls_blowfish_context *ctx)
Initialize Blowfish context.
Definition: blowfish.c:412