X-Git-Url: https://www.irasnyder.com/gitweb/?p=aes.git;a=blobdiff_plain;f=aes.cpp;fp=aes.cpp;h=883d3b33c3d32e2bae5d47c8d2cba833cf45bf61;hp=e4aef0bb2fc81e0b8da5fc95dec2cf20975483d7;hb=f06d505218bd3f8c05e9c64f0705bfa3066f665c;hpb=4bfbc559f6d8e186f8b95b48ae9603ee32dbb17d diff --git a/aes.cpp b/aes.cpp index e4aef0b..883d3b3 100644 --- a/aes.cpp +++ b/aes.cpp @@ -9,8 +9,7 @@ static byte xtimes (const byte bx); static void printState (byteArray &bytes, std::string name); AES::AES (const byteArray& key) - : Nb(4) // This is constant in AES - , Nk(key.size() / 4) // This can be either 4, 6, or 8 (128, 192, or 256 bit) + : Nk(key.size() / 4) // This can be either 4, 6, or 8 (128, 192, or 256 bit) , Nr(Nk + Nb + 2) , keySchedule(Nb * (Nr+1), 0x00000000) {