diff options
author | kokke <spam@rowdy.dk> | 2014-12-15 21:22:17 +0100 |
---|---|---|
committer | kokke <spam@rowdy.dk> | 2014-12-15 21:22:17 +0100 |
commit | 5c525a46a9b287f16fb161ef2a56336619185742 (patch) | |
tree | 367cac50f1788d2bbe7355e19ea4da63f86a3171 | |
parent | Delete aes_cbc.c (diff) | |
download | tiny-AES-c-5c525a46a9b287f16fb161ef2a56336619185742.tar tiny-AES-c-5c525a46a9b287f16fb161ef2a56336619185742.tar.gz tiny-AES-c-5c525a46a9b287f16fb161ef2a56336619185742.tar.bz2 tiny-AES-c-5c525a46a9b287f16fb161ef2a56336619185742.tar.lz tiny-AES-c-5c525a46a9b287f16fb161ef2a56336619185742.tar.xz tiny-AES-c-5c525a46a9b287f16fb161ef2a56336619185742.tar.zst tiny-AES-c-5c525a46a9b287f16fb161ef2a56336619185742.zip |
-rw-r--r-- | aes.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -71,8 +71,10 @@ static uint8_t RoundKey[176]; // The Key input to the AES Program static const uint8_t* Key; -// Initial Vector used for CBC mode etc. -static uint8_t* Iv; +#if defined(CBC) && CBC + // Initial Vector used only for CBC mode + static uint8_t* Iv; +#endif // The lookup-tables are marked const so they can be placed in read-only storage instead of RAM // The numbers below can be computed dynamically trading ROM for RAM - |