From cf6d0b99cb36e3509112e6966c3b1b4928f5ec41 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 12 Dec 2023 18:47:27 +0100 Subject: [PATCH] Execute AES in a cycle --- aes-32bit/aes.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aes-32bit/aes.cpp b/aes-32bit/aes.cpp index 0ab49e8..ab7466e 100644 --- a/aes-32bit/aes.cpp +++ b/aes-32bit/aes.cpp @@ -184,9 +184,7 @@ void aes(uint8_t *in, uint8_t *out, uint8_t *skey) //**************************** int main(int argc, char* argv[]) { - // test aes encryption - printf("Testing aes\n"); - { + 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, /*...*/ };