Mercurial > libavutil.hg
annotate aes128.h @ 216:1c3c3b1b9596 libavutil
cbc support
author | michael |
---|---|
date | Tue, 16 Jan 2007 19:08:52 +0000 |
parents | 363f904df04d |
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 |