libavutil/des.h File Reference

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  AVDES

Functions

int av_des_init (struct AVDES *d, const uint8_t *key, int key_bits, int decrypt)
 Initializes an AVDES context.
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.
void av_des_mac (struct AVDES *d, uint8_t *dst, const uint8_t *src, int count)
 Calculates CBC-MAC using the DES algorithm.


Function Documentation

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.

Parameters:
count number of 8 byte blocks
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
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 331 of file des.c.

Referenced by ff_asfcrypt_dec(), nprobe(), oma_read_packet(), and rprobe().

int av_des_init ( struct AVDES d,
const uint8_t key,
int  key_bits,
int  decrypt 
)

Initializes an AVDES context.

Parameters:
key_bits must be 64 or 192
decrypt 0 for encryption/CBC-MAC, 1 for decryption

Definition at line 289 of file des.c.

Referenced by ff_asfcrypt_dec(), nprobe(), and rprobe().

void av_des_mac ( struct AVDES d,
uint8_t dst,
const uint8_t src,
int  count 
)

Calculates CBC-MAC using the DES algorithm.

Parameters:
count number of 8 byte blocks
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

Definition at line 335 of file des.c.

Referenced by rprobe().


Generated on Fri Oct 26 02:48:03 2012 for FFmpeg by  doxygen 1.5.8