diff options
author | Roy Keene <github@rkeene.org> | 2019-01-22 19:04:17 +0100 |
---|---|---|
committer | Roy Keene <github@rkeene.org> | 2019-01-22 19:04:17 +0100 |
commit | a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc (patch) | |
tree | 85c41d7719e3d23cf1d80ffa05ef8cae4bdfdadd | |
parent | Merge pull request #121 from rkeene/invcipher-not-ctr (diff) | |
download | tiny-AES-c-a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc.tar tiny-AES-c-a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc.tar.gz tiny-AES-c-a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc.tar.bz2 tiny-AES-c-a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc.tar.lz tiny-AES-c-a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc.tar.xz tiny-AES-c-a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc.tar.zst tiny-AES-c-a5e18ec9950982ffb979a8dd919e29ae9bcaf2dc.zip |
-rw-r--r-- | aes.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -341,6 +341,7 @@ static uint8_t Multiply(uint8_t x, uint8_t y) #endif +#if (defined(CBC) && CBC == 1) || (defined(ECB) && ECB == 1) // MixColumns function mixes the columns of the state matrix. // The method used to multiply may be difficult to understand for the inexperienced. // Please use the references to gain more information. @@ -404,7 +405,7 @@ static void InvShiftRows(state_t* state) (*state)[2][3] = (*state)[3][3]; (*state)[3][3] = temp; } - +#endif // #if (defined(CBC) && CBC == 1) || (defined(ECB) && ECB == 1) // Cipher is the main function that encrypts the PlainText. static void Cipher(state_t* state, uint8_t* RoundKey) |