diff --git a/aes/aes.cpp b/aes/aes.cpp index c388c64..e1379bb 100644 --- a/aes/aes.cpp +++ b/aes/aes.cpp @@ -315,7 +315,7 @@ int main(int argc, char* argv[]) // test AddRoundKey (last round) t_state state = { 0x01234567, 0x89abcdef, 0xdeadbeef, 0x00112233 }; t_state res_state = { 0xb46d152d, 0x45e164c3, 0xa7cab335, 0x910eed36 }; - addRoundKey(state, key_w, 10); + addRoundKey(state, key_w, 40); printf("0x%08x, 0x%08x, 0x%08x, 0x%08x\n", state[0], state[1], state[2], state[3]); for (int i = 0; i < 4; i++) { if (state[i] != res_state[i]) { printf("Mismatch at state[%d]!\n", i); }