FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
CAMELLIA
Crypto and Hashing

Functions

struct AVCAMELLIAav_camellia_alloc (void)
 Allocate an AVCAMELLIA context To free the struct: av_free(ptr)
 
int av_camellia_init (struct AVCAMELLIA *ctx, const uint8_t *key, int key_bits)
 Initialize an AVCAMELLIA context.
 
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.
 

Variables

const int av_camellia_size
 

Detailed Description

Function Documentation

struct AVCAMELLIA* av_camellia_alloc ( void  )
read

Allocate an AVCAMELLIA context To free the struct: av_free(ptr)

Definition at line 347 of file camellia.c.

Referenced by run_lavu_camellia().

int av_camellia_init ( struct AVCAMELLIA ctx,
const uint8_t key,
int  key_bits 
)

Initialize an AVCAMELLIA context.

Parameters
ctxan AVCAMELLIA context
keya key of 16, 24, 32 bytes used for encryption/decryption
key_bitsnumber of keybits: possible are 128, 192, 256

Definition at line 352 of file camellia.c.

Referenced by 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.

Parameters
ctxan AVCAMELLIA context
dstdestination array, can be equal to src
srcsource array, can be equal to dst
countnumber of 16 byte blocks iv initialization vector for CBC mode, NULL for ECB mode
decrypt0 for encryption, 1 for decryption

Definition at line 393 of file camellia.c.

Referenced by run_lavu_camellia().

Variable Documentation

const int av_camellia_size

Definition at line 125 of file camellia.c.