diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-01-14 14:08:02 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-01-14 14:08:02 +0000 |
commit | 28221dd0fb7b06fe93327cc1bdd477d315ee06f3 (patch) | |
tree | fbbe2a2fbf8a2a84dc40b6df03786afc3483d6f2 /libavutil/aes128.h | |
parent | 3439dc95070e78b261f80d34a2892f44368e86c5 (diff) | |
download | ffmpeg-28221dd0fb7b06fe93327cc1bdd477d315ee06f3.tar.gz |
128bit-only AES implementation under development.
Originally committed as revision 7474 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/aes128.h')
-rw-r--r-- | libavutil/aes128.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libavutil/aes128.h b/libavutil/aes128.h new file mode 100644 index 0000000000..8e5793cfa4 --- /dev/null +++ b/libavutil/aes128.h @@ -0,0 +1,20 @@ +#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 |