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

Files

file  xtea.c
 XTEA 32-bit implementation.
 

Data Structures

struct  AVXTEA
 

Functions

void av_xtea_init (struct AVXTEA *ctx, const uint8_t key[16])
 Initialize an AVXTEA context.
 
void av_xtea_crypt (struct AVXTEA *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.
 

Detailed Description

Function Documentation

void av_xtea_init ( struct AVXTEA ctx,
const uint8_t  key[16] 
)

Initialize an AVXTEA context.

Parameters
ctxan AVXTEA context
keya key of 16 bytes used for encryption/decryption

Definition at line 36 of file xtea.c.

Referenced by rtmpe8_sig().

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

Definition at line 164 of file xtea.c.

Referenced by rtmpe8_sig().