Fix non-functioning test

This commit is contained in:
Manuel Thalmann 2023-11-14 08:53:21 +01:00
parent 79d2776d41
commit aff464383e

View file

@ -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); }