Update aes.c

This commit is contained in:
kokke 2014-12-08 09:53:19 +01:00
parent b5a39eeaad
commit 8ddb7c6e1b
1 changed files with 2 additions and 2 deletions

4
aes.c
View File

@ -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;