1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavutil/aes128.h
Reimar Döffinger 28221dd0fb 128bit-only AES implementation under development.
Originally committed as revision 7474 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 14:08:02 +00:00

21 lines
445 B
C

#ifndef AES128_H
#define AES128_H
#ifdef CONFIG_GCRYPT
#include <gcrypt.h>
typedef struct {
gcry_cipher_hd_t ch;
} AES128Context;
#else
typedef struct {
uint32_t multbl[4][256];
uint8_t subst[256];
uint8_t key[11][16];
} AES128Context;
#endif
AES128Context *aes128_init(void);
void aes128_set_key(AES128Context *c, const uint8_t *key);
void aes128_cbc_decrypt(AES128Context *c, uint8_t *mem, int blockcnt, uint8_t *IV);
#endif