ECB and CBC is always defined

This commit is contained in:
Alexey Ryabov 2017-03-28 09:25:11 +03:00 committed by GitHub
parent f68d5862d5
commit 6021a563fe

8
aes.h
View File

@ -20,20 +20,20 @@
#if defined(ECB) && ECB
#if ECB
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
#endif // #if ECB
#if defined(CBC) && CBC
#if CBC
void AES128_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
void AES128_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
#endif // #if defined(CBC) && CBC
#endif // #if CBC