From d84200498bbbda037b4aecc0c8409b63962cf263 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 12 Dec 2023 18:56:24 +0100 Subject: [PATCH] Further reduce code of 32-bit solution --- aes-32bit/aes.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/aes-32bit/aes.cpp b/aes-32bit/aes.cpp index ab7466e..4445b93 100644 --- a/aes-32bit/aes.cpp +++ b/aes-32bit/aes.cpp @@ -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); } }