FFmpeg
|
Data Structures | |
struct | AVDES |
Functions | |
AVDES * | av_des_alloc (void) |
Allocate an AVDES context. More... | |
int | av_des_init (struct AVDES *d, const uint8_t *key, int key_bits, int decrypt) |
Initializes an AVDES context. More... | |
void | av_des_crypt (struct AVDES *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) |
Encrypts / decrypts using the DES algorithm. More... | |
void | av_des_mac (struct AVDES *d, uint8_t *dst, const uint8_t *src, int count) |
Calculates CBC-MAC using the DES algorithm. More... | |
AVDES* av_des_alloc | ( | void | ) |
Allocate an AVDES context.
Definition at line 275 of file des.c.
Referenced by decrypt_init(), ff_asfcrypt_dec(), nprobe(), rprobe(), and run_lavu_des().
int av_des_init | ( | struct AVDES * | d, |
const uint8_t * | key, | ||
int | key_bits, | ||
int | decrypt | ||
) |
void av_des_crypt | ( | struct AVDES * | d, |
uint8_t * | dst, | ||
const uint8_t * | src, | ||
int | count, | ||
uint8_t * | iv, | ||
int | decrypt | ||
) |
Encrypts / decrypts using the DES algorithm.
d | pointer to the AVDES structure |
dst | destination array, can be equal to src, must be 8-byte aligned |
src | source array, can be equal to dst, must be 8-byte aligned, may be NULL |
count | number of 8 byte blocks |
iv | initialization vector for CBC mode, if NULL then ECB will be used, must be 8-byte aligned |
decrypt | 0 for encryption, 1 for decryption |
Definition at line 324 of file des.c.
Referenced by decrypt_init(), ff_asfcrypt_dec(), main(), nprobe(), read_packet(), rprobe(), run_lavu_des(), and run_test().
void av_des_mac | ( | struct AVDES * | d, |
uint8_t * | dst, | ||
const uint8_t * | src, | ||
int | count | ||
) |
Calculates CBC-MAC using the DES algorithm.
d | pointer to the AVDES structure |
dst | destination array, can be equal to src, must be 8-byte aligned |
src | source array, can be equal to dst, must be 8-byte aligned, may be NULL |
count | number of 8 byte blocks |
Definition at line 330 of file des.c.
Referenced by rprobe().