Merge branch 'master' into ctr

This commit is contained in:
Jef Timmermans 2017-01-06 13:08:38 +01:00
commit 275d811d64
No known key found for this signature in database
GPG Key ID: FAC3B29E48BD71F4
2 changed files with 4 additions and 4 deletions

4
aes.c
View File

@ -470,7 +470,7 @@ static void BlockCopy(uint8_t* output, const uint8_t* input)
#if defined(ECB) && ECB
void AES128_ECB_encrypt(uint8_t* input, const uint8_t* key, uint8_t* output)
void AES128_ECB_encrypt(const uint8_t* input, const uint8_t* key, uint8_t* output)
{
// Copy input to output, and work in-memory on output
BlockCopy(output, input);
@ -483,7 +483,7 @@ void AES128_ECB_encrypt(uint8_t* input, const uint8_t* key, uint8_t* output)
Cipher();
}
void AES128_ECB_decrypt(uint8_t* input, const uint8_t* key, uint8_t *output)
void AES128_ECB_decrypt(const uint8_t* input, const uint8_t* key, uint8_t *output)
{
// Copy input to output, and work in-memory on output
BlockCopy(output, input);

4
aes.h
View File

@ -27,8 +27,8 @@
#if defined(ECB) && ECB
void AES128_ECB_encrypt(uint8_t* input, const uint8_t* key, uint8_t *output);
void AES128_ECB_decrypt(uint8_t* input, const uint8_t* key, uint8_t *output);
void AES128_ECB_encrypt(const uint8_t* input, const uint8_t* key, uint8_t *output);
void AES128_ECB_decrypt(const uint8_t* input, const uint8_t* key, uint8_t *output);
#endif // #if defined(ECB) && ECB