Mercurial > libavutil.hg
view aes128.h @ 189:61ca39abb491 libavutil
remove duplicate round_key
one context is now either for encoding or decoding (makes more sense in reality too)
author | michael |
---|---|
date | Sun, 14 Jan 2007 19:24:06 +0000 |
parents | 363f904df04d |
children |
line wrap: on
line source
#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