libavutil/aes.h File Reference

#include <stdint.h>

Go to the source code of this file.

Functions

int av_aes_init (struct AVAES *a, const uint8_t *key, int key_bits, int decrypt)
 Initializes an AVAES context.
void av_aes_crypt (struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 Encrypts / decrypts.

Variables

const int av_aes_size


Function Documentation

void av_aes_crypt ( struct AVAES a,
uint8_t *  dst,
const uint8_t *  src,
int  count,
uint8_t *  iv,
int  decrypt 
)

Encrypts / decrypts.

Parameters:
count number of 16 byte blocks
dst destination array, can be equal to src
src source array, can be equal to dst
iv initialization vector for CBC mode, if NULL then ECB will be used
decrypt 0 for encryption, 1 for decryption

Definition at line 90 of file aes.c.

Referenced by mxf_decrypt_triplet().

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

Initializes an AVAES context.

Parameters:
key_bits 128, 192 or 256
decrypt 0 for encryption, 1 for decryption

Definition at line 125 of file aes.c.

Referenced by mxf_decrypt_triplet().


Variable Documentation

const int av_aes_size

Definition at line 34 of file aes.c.

Referenced by mxf_decrypt_triplet().


Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8