FFmpeg
Functions | Variables

Functions

struct AVAESav_aes_alloc (void)
 Allocate an AVAES context. More...
 
int av_aes_init (struct AVAES *a, const uint8_t *key, int key_bits, int decrypt)
 Initialize an AVAES context. More...
 
void av_aes_crypt (struct AVAES *a, 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_aes_size
 

Detailed Description

Function Documentation

◆ av_aes_alloc()

struct AVAES* av_aes_alloc ( void  )

◆ av_aes_init()

int av_aes_init ( struct AVAES a,
const uint8_t *  key,
int  key_bits,
int  decrypt 
)

Initialize an AVAES context.

Parameters
aThe AVAES context
keyPointer to the key
key_bits128, 192 or 256
decrypt0 for encryption, 1 for decryption

Definition at line 201 of file aes.c.

Referenced by aax_filter(), av_aes_ctr_init(), cbc1_scheme_decrypt(), cbcs_scheme_decrypt(), crypto_open2(), decrypt_nal_unit(), decrypt_sync_frame(), ff_srtp_decrypt(), ff_srtp_encrypt(), ff_srtp_set_crypto(), main(), mov_read_adrm(), mxf_decrypt_triplet(), and run_lavu_aes128().

◆ av_aes_crypt()

void av_aes_crypt ( struct AVAES a,
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
aThe AVAES context
dstdestination array, can be equal to src
srcsource array, can be equal to dst
countnumber of 16 byte blocks
ivinitialization vector for CBC mode, if NULL then ECB will be used
decrypt0 for encryption, 1 for decryption

Definition at line 169 of file aes.c.

Referenced by aax_filter(), av_aes_ctr_crypt(), cbc1_scheme_decrypt(), cbcs_scheme_decrypt(), crypto_close(), crypto_read(), crypto_write(), decrypt_nal_unit(), decrypt_sync_frame(), encrypt_counter(), main(), mov_read_adrm(), mxf_decrypt_triplet(), and run_lavu_aes128().

Variable Documentation

◆ av_aes_size

const int av_aes_size

Definition at line 33 of file aes.c.