From 15adafae4d062601fe0473388e98621fc53f65f4 Mon Sep 17 00:00:00 2001 From: namreeb Date: Thu, 6 Aug 2015 21:12:02 -1000 Subject: [PATCH 1/2] const'ify some parameters --- aes.c | 6 +++--- aes.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aes.c b/aes.c index 38ec132..d44d281 100644 --- a/aes.c +++ b/aes.c @@ -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 Date: Tue, 3 Jan 2017 16:41:41 -0800 Subject: [PATCH 2/2] Make ECB API const-correct. --- aes.c | 6 +++--- aes.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aes.c b/aes.c index 38ec132..d44d281 100644 --- a/aes.c +++ b/aes.c @@ -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