Further reduce code of 32-bit solution

This commit is contained in:
Manuel Thalmann 2023-12-12 18:56:24 +01:00
parent cf6d0b99cb
commit d84200498b

View file

@ -187,13 +187,6 @@ int main(int argc, char* argv[])
for (int i = 0; i < 1000000; i++) { 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 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 in[16] = { 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89};
uint8_t out[16] = { 0, /*...*/ }; aes(in, in, key);
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("");
} }
} }