Fix non-functioning test
This commit is contained in:
parent
79d2776d41
commit
aff464383e
|
@ -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); }
|
||||
|
|
Loading…
Reference in a new issue