From 5c525a46a9b287f16fb161ef2a56336619185742 Mon Sep 17 00:00:00 2001 From: kokke Date: Mon, 15 Dec 2014 21:22:17 +0100 Subject: Update aes.c --- aes.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aes.c b/aes.c index 21c8430..4c7645f 100644 --- a/aes.c +++ b/aes.c @@ -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 - -- cgit v1.2.3