mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-22 05:21:52 +03:00
Merge branch 'master' into ctr
This commit is contained in:
commit
275d811d64
4
aes.c
4
aes.c
@ -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
4
aes.h
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user