Fork of François Berder Crypto, fixed AES CBC and small rework
Dependents: AES_example shaun_larada Smartage
Fork of Crypto by
Diff: cipher/AES.cpp
- Revision:
- 15:6093fc19aad6
- Parent:
- 8:a090264e9b2d
diff -r f04410cef037 -r 6093fc19aad6 cipher/AES.cpp --- a/cipher/AES.cpp Sun May 11 13:36:45 2014 +0000 +++ b/cipher/AES.cpp Wed Jan 28 17:15:32 2015 +0000 @@ -76,8 +76,8 @@ keyExpansion(key); } -AES::AES(const AES_TYPE t, uint8_t *key, uint8_t *iv): -BlockCipher(16,CBC_MODE, iv), +AES::AES(const AES_TYPE t, uint8_t *key, uint8_t *iv, BLOCK_CIPHER_MODE m): +BlockCipher(16,m, iv), state() { switch(t)