Mercurial > libavutil.hg
annotate aes128.h @ 176:363f904df04d libavutil
128bit-only AES implementation under development.
author | reimar |
---|---|
date | Sun, 14 Jan 2007 14:08:02 +0000 |
parents | |
children |
rev | line source |
---|---|
176 | 1 #ifndef AES128_H |
2 #define AES128_H | |
3 | |
4 #ifdef CONFIG_GCRYPT | |
5 #include <gcrypt.h> | |
6 typedef struct { | |
7 gcry_cipher_hd_t ch; | |
8 } AES128Context; | |
9 #else | |
10 typedef struct { | |
11 uint32_t multbl[4][256]; | |
12 uint8_t subst[256]; | |
13 uint8_t key[11][16]; | |
14 } AES128Context; | |
15 #endif | |
16 AES128Context *aes128_init(void); | |
17 void aes128_set_key(AES128Context *c, const uint8_t *key); | |
18 void aes128_cbc_decrypt(AES128Context *c, uint8_t *mem, int blockcnt, uint8_t *IV); | |
19 | |
20 #endif |