Further reduce code of 32-bit solution
This commit is contained in:
parent
cf6d0b99cb
commit
d84200498b
1 changed files with 1 additions and 8 deletions
|
@ -187,13 +187,6 @@ int main(int argc, char* argv[])
|
|||
for (int i = 0; i < 1000000; i++) {
|
||||
uint8_t key[16] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff };
|
||||
uint8_t in[16] = { 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89};
|
||||
uint8_t out[16] = { 0, /*...*/ };
|
||||
uint8_t res_out[16] = { 0xa3, 0x3a, 0xca, 0x68, 0x72, 0xa2, 0x27, 0x74, 0xbf, 0x99, 0xf3, 0x71, 0xaa, 0x99, 0xd2, 0x5a };
|
||||
|
||||
aes(in, out, key);
|
||||
|
||||
printf("Out: ");
|
||||
hexprint16(out);
|
||||
puts("");
|
||||
aes(in, in, key);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue