From aff464383ea797aea168d2677a6189400f01f045 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 14 Nov 2023 08:53:21 +0100 Subject: [PATCH] Fix non-functioning test --- aes/aes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }