FFmpeg
|
Functions | |
struct AVCAMELLIA * | av_camellia_alloc (void) |
Allocate an AVCAMELLIA context To free the struct: av_free(ptr) More... | |
int | av_camellia_init (struct AVCAMELLIA *ctx, const uint8_t *key, int key_bits) |
Initialize an AVCAMELLIA context. More... | |
void | av_camellia_crypt (struct AVCAMELLIA *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... | |
Variables | |
const int | av_camellia_size |
struct AVCAMELLIA* av_camellia_alloc | ( | void | ) |
Allocate an AVCAMELLIA context To free the struct: av_free(ptr)
Definition at line 351 of file camellia.c.
Referenced by main(), and run_lavu_camellia().
int av_camellia_init | ( | struct AVCAMELLIA * | ctx, |
const uint8_t * | key, | ||
int | key_bits | ||
) |
Initialize an AVCAMELLIA context.
ctx | an AVCAMELLIA context |
key | a key of 16, 24, 32 bytes used for encryption/decryption |
key_bits | number of keybits: possible are 128, 192, 256 |
Definition at line 356 of file camellia.c.
Referenced by main(), and run_lavu_camellia().
void av_camellia_crypt | ( | struct AVCAMELLIA * | 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.
ctx | an AVCAMELLIA context |
dst | destination array, can be equal to src |
src | source array, can be equal to dst |
count | number of 16 byte blocks @paran iv initialization vector for CBC mode, NULL for ECB mode |
decrypt | 0 for encryption, 1 for decryption |
Definition at line 397 of file camellia.c.
Referenced by main(), and run_lavu_camellia().
const int av_camellia_size |
Definition at line 129 of file camellia.c.