From dd7e31dbabc6d63dfeba3806362b757237f2e71e Mon Sep 17 00:00:00 2001 From: couturie Date: Fri, 1 Mar 2019 06:56:58 +0100 Subject: [PATCH] new --- OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c b/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c index 70e7678..1d5187a 100644 --- a/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c +++ b/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c @@ -168,14 +168,17 @@ int main(int argc, char *argv[]) { printf("Block Size: %d\n", my_cipher.block_size); + uint8_t *backup_buffer; double t=TimeStart(); + for(int i=0;i<100;i++) { - uint8_t *backup_buffer = working_buffer; - for(int block=0; block < input_size / block_size; block++){ + + *backup_buffer = working_buffer; + for(int block=0; block < input_size / block_size; block++){ (*operationPtr)(my_cipher, working_buffer, working_buffer); working_buffer += block_size; - } + } } double time=TimeStop(t); -- 2.39.5