From 6021a563fe38767e7e15652c5f5505fe44548ed1 Mon Sep 17 00:00:00 2001 From: Alexey Ryabov <6006l1k@gmail.com> Date: Tue, 28 Mar 2017 09:25:11 +0300 Subject: [PATCH] ECB and CBC is always defined --- aes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aes.h b/aes.h index e86ab7f..2283a91 100644 --- a/aes.h +++ b/aes.h @@ -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