diff options
author | namreeb <github@namreeb.org> | 2015-08-07 09:12:02 +0200 |
---|---|---|
committer | namreeb <github@namreeb.org> | 2015-08-07 09:14:04 +0200 |
commit | 15adafae4d062601fe0473388e98621fc53f65f4 (patch) | |
tree | 8251ed16ca6a5b3732c5d210dc93ddf7fd1423c3 /aes.c | |
parent | Merge pull request #19 from bitdust/master (diff) | |
download | tiny-AES-c-15adafae4d062601fe0473388e98621fc53f65f4.tar tiny-AES-c-15adafae4d062601fe0473388e98621fc53f65f4.tar.gz tiny-AES-c-15adafae4d062601fe0473388e98621fc53f65f4.tar.bz2 tiny-AES-c-15adafae4d062601fe0473388e98621fc53f65f4.tar.lz tiny-AES-c-15adafae4d062601fe0473388e98621fc53f65f4.tar.xz tiny-AES-c-15adafae4d062601fe0473388e98621fc53f65f4.tar.zst tiny-AES-c-15adafae4d062601fe0473388e98621fc53f65f4.zip |
Diffstat (limited to '')
-rw-r--r-- | aes.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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<KEYLEN;++i) @@ -451,7 +451,7 @@ static void BlockCopy(uint8_t* output, 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); @@ -464,7 +464,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); |