From ea9417be1e1c60681c8dc1f5071059eb602f329e Mon Sep 17 00:00:00 2001 From: couturie Date: Fri, 1 Mar 2019 06:59:44 +0100 Subject: [PATCH] new --- OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c b/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c index 1d5187a..d113388 100644 --- a/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c +++ b/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c @@ -169,12 +169,13 @@ int main(int argc, char *argv[]) { uint8_t *backup_buffer; + uint8_t *start=working_buffer; double t=TimeStart(); for(int i=0;i<100;i++) { - - *backup_buffer = working_buffer; + working_buffer=start; + 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; -- 2.39.5