FFmpeg
|
Functions | |
struct AVCAST5 * | av_cast5_alloc (void) |
Allocate an AVCAST5 context To free the struct: av_free(ptr) More... | |
int | av_cast5_init (struct AVCAST5 *ctx, const uint8_t *key, int key_bits) |
Initialize an AVCAST5 context. More... | |
void | av_cast5_crypt (struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, int decrypt) |
Encrypt or decrypt a buffer using a previously initialized context, ECB mode only. More... | |
void | av_cast5_crypt2 (struct AVCAST5 *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_cast5_size |
Allocate an AVCAST5 context To free the struct: av_free(ptr)
Definition at line 451 of file cast5.c.
Referenced by run_lavu_cast128().
Initialize an AVCAST5 context.
ctx | an AVCAST5 context |
key | a key of 5,6,...16 bytes used for encryption/decryption |
key_bits | number of keybits: possible are 40,48,...,128 |
Definition at line 456 of file cast5.c.
Referenced by run_lavu_cast128().
void av_cast5_crypt | ( | struct AVCAST5 * | ctx, |
uint8_t * | dst, | ||
const uint8_t * | src, | ||
int | count, | ||
int | decrypt | ||
) |
Encrypt or decrypt a buffer using a previously initialized context, ECB mode only.
ctx | an AVCAST5 context |
dst | destination array, can be equal to src |
src | source array, can be equal to dst |
count | number of 8 byte blocks |
decrypt | 0 for encryption, 1 for decryption |
Definition at line 496 of file cast5.c.
Referenced by run_lavu_cast128().
void av_cast5_crypt2 | ( | struct AVCAST5 * | 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 AVCAST5 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, NULL for ECB mode |
decrypt | 0 for encryption, 1 for decryption |