diff options
author | kokke <spam@rowdy.dk> | 2019-01-17 20:07:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 20:07:21 +0100 |
commit | ce24c0db9d7543787e2571dd316c1225ada865ef (patch) | |
tree | 51e3d8742d8f21007e1bdf58fd25ab576502079e | |
parent | Update aes.c (diff) | |
parent | Only define InvCipher if needed (diff) | |
download | tiny-AES-c-ce24c0db9d7543787e2571dd316c1225ada865ef.tar tiny-AES-c-ce24c0db9d7543787e2571dd316c1225ada865ef.tar.gz tiny-AES-c-ce24c0db9d7543787e2571dd316c1225ada865ef.tar.bz2 tiny-AES-c-ce24c0db9d7543787e2571dd316c1225ada865ef.tar.lz tiny-AES-c-ce24c0db9d7543787e2571dd316c1225ada865ef.tar.xz tiny-AES-c-ce24c0db9d7543787e2571dd316c1225ada865ef.tar.zst tiny-AES-c-ce24c0db9d7543787e2571dd316c1225ada865ef.zip |
-rw-r--r-- | aes.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -432,6 +432,7 @@ static void Cipher(state_t* state, uint8_t* RoundKey) AddRoundKey(Nr, state, RoundKey); } +#if (defined(CBC) && CBC == 1) || (defined(ECB) && ECB == 1) static void InvCipher(state_t* state,uint8_t* RoundKey) { uint8_t round = 0; @@ -456,7 +457,7 @@ static void InvCipher(state_t* state,uint8_t* RoundKey) InvSubBytes(state); AddRoundKey(0, state, RoundKey); } - +#endif // #if (defined(CBC) && CBC == 1) || (defined(ECB) && ECB == 1) /*****************************************************************************/ /* Public functions: */ |