diff options
author | kokke <spam@rowdy.dk> | 2014-12-08 09:53:19 +0100 |
---|---|---|
committer | kokke <spam@rowdy.dk> | 2014-12-08 09:53:19 +0100 |
commit | 8ddb7c6e1b588204361323aaffc4c7450566cacf (patch) | |
tree | b841c1a42aa360e6a360ee241fb136db5228b70e /aes.c | |
parent | Update aes.h (diff) | |
download | tiny-AES-c-8ddb7c6e1b588204361323aaffc4c7450566cacf.tar tiny-AES-c-8ddb7c6e1b588204361323aaffc4c7450566cacf.tar.gz tiny-AES-c-8ddb7c6e1b588204361323aaffc4c7450566cacf.tar.bz2 tiny-AES-c-8ddb7c6e1b588204361323aaffc4c7450566cacf.tar.lz tiny-AES-c-8ddb7c6e1b588204361323aaffc4c7450566cacf.tar.xz tiny-AES-c-8ddb7c6e1b588204361323aaffc4c7450566cacf.tar.zst tiny-AES-c-8ddb7c6e1b588204361323aaffc4c7450566cacf.zip |
Diffstat (limited to '')
-rw-r--r-- | aes.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |