From 8ddb7c6e1b588204361323aaffc4c7450566cacf Mon Sep 17 00:00:00 2001 From: kokke Date: Mon, 8 Dec 2014 09:53:19 +0100 Subject: Update aes.c --- aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aes.c b/aes.c index 967f184..4d773cc 100644 --- a/aes.c +++ b/aes.c @@ -473,7 +473,7 @@ static void InvCipher(void) /* Public functions: */ /*****************************************************************************/ -void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output) +void AES128_ECB_encrypt(uint8_t* input, const uint8_t* key, uint8_t *output) { // Copy the Key and CipherText Key = key; @@ -487,7 +487,7 @@ void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output) Cipher(); } -void AES128_ECB_decrypt(uint8_t* input, uint8_t* key, uint8_t *output) +void AES128_ECB_decrypt(uint8_t* input, const uint8_t* key, uint8_t *output) { Key = key; in = input; -- cgit v1.2.3