FFmpeg
|
Blowfish
Collaboration diagram for Blowfish:
Data Structures | |
struct | AVBlowfish |
Macros | |
#define | AV_BF_ROUNDS 16 |
Typedefs | |
typedef struct AVBlowfish | AVBlowfish |
Functions | |
void | av_blowfish_init (struct AVBlowfish *ctx, const uint8_t *key, int key_len) |
Initialize an AVBlowfish context. More... | |
void | av_blowfish_crypt_ecb (struct AVBlowfish *ctx, uint32_t *xl, uint32_t *xr, int decrypt) |
Encrypt or decrypt a buffer using a previously initialized context. More... | |
void | av_blowfish_crypt (struct AVBlowfish *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) |
Encrypt or decrypt a buffer using a previously initialized context. More... | |
Detailed Description
Macro Definition Documentation
#define AV_BF_ROUNDS 16 |
Definition at line 33 of file blowfish.h.
Referenced by av_blowfish_crypt_ecb(), and av_blowfish_init().
Typedef Documentation
typedef struct AVBlowfish AVBlowfish |
Function Documentation
void av_blowfish_crypt | ( | struct AVBlowfish * | ctx, |
uint8_t * | dst, | ||
const uint8_t * | src, | ||
int | count, | ||
uint8_t * | iv, | ||
int | decrypt | ||
) |
Encrypt or decrypt a buffer using a previously initialized context.
- Parameters
-
ctx an AVBlowfish context dst destination array, can be equal to src src source array, can be equal to dst count number of 8 byte blocks iv initialization vector for CBC mode, if NULL ECB will be used decrypt 0 for encryption, 1 for decryption
Definition at line 370 of file blowfish.c.
Referenced by av_blowfish_crypt().
void av_blowfish_crypt_ecb | ( | struct AVBlowfish * | ctx, |
uint32_t * | xl, | ||
uint32_t * | xr, | ||
int | decrypt | ||
) |
Encrypt or decrypt a buffer using a previously initialized context.
- Parameters
-
ctx an AVBlowfish context xl left four bytes halves of input to be encrypted xr right four bytes halves of input to be encrypted decrypt 0 for encryption, 1 for decryption
Definition at line 339 of file blowfish.c.
Referenced by av_blowfish_crypt(), av_blowfish_init(), and rtmpe9_sig().
void av_blowfish_init | ( | struct AVBlowfish * | ctx, |
const uint8_t * | key, | ||
int | key_len | ||
) |
Initialize an AVBlowfish context.
- Parameters
-
ctx an AVBlowfish context key a key key_len length of the key
Definition at line 304 of file blowfish.c.
Referenced by av_blowfish_crypt(), and rtmpe9_sig().
Generated on Fri Dec 20 2024 06:56:17 for FFmpeg by 1.8.11