summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Keene <github@rkeene.org>2019-01-11 17:36:17 +0100
committerRoy Keene <github@rkeene.org>2019-01-11 17:36:17 +0100
commitc033c7c7e4b5a31554639cd11cc21aeed04725a6 (patch)
tree51e3d8742d8f21007e1bdf58fd25ab576502079e
parentUpdate aes.c (diff)
downloadtiny-AES-c-c033c7c7e4b5a31554639cd11cc21aeed04725a6.tar
tiny-AES-c-c033c7c7e4b5a31554639cd11cc21aeed04725a6.tar.gz
tiny-AES-c-c033c7c7e4b5a31554639cd11cc21aeed04725a6.tar.bz2
tiny-AES-c-c033c7c7e4b5a31554639cd11cc21aeed04725a6.tar.lz
tiny-AES-c-c033c7c7e4b5a31554639cd11cc21aeed04725a6.tar.xz
tiny-AES-c-c033c7c7e4b5a31554639cd11cc21aeed04725a6.tar.zst
tiny-AES-c-c033c7c7e4b5a31554639cd11cc21aeed04725a6.zip
-rw-r--r--aes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/aes.c b/aes.c
index c79a618..f0f9ac9 100644
--- a/aes.c
+++ b/aes.c
@@ -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: */