diff --git a/aes.c b/aes.c index 4c7645f..2561951 100644 --- a/aes.c +++ b/aes.c @@ -73,7 +73,7 @@ static const uint8_t* Key; #if defined(CBC) && CBC // Initial Vector used only for CBC mode - static uint8_t* Iv; + static const uint8_t* Iv; #endif // The lookup-tables are marked const so they can be placed in read-only storage instead of RAM @@ -434,7 +434,7 @@ static void InvCipher(void) AddRoundKey(0); } -static void BlockCopy(uint8_t* output, uint8_t* input) +static void BlockCopy(uint8_t* output, const uint8_t* input) { uint8_t i; for (i=0;i