From 006d7467f2d5d665ef56a1d1edc99a4daab94f48 Mon Sep 17 00:00:00 2001 From: couturie Date: Fri, 1 Mar 2019 06:55:44 +0100 Subject: [PATCH] new --- OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c b/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c index 7bab141..70e7678 100644 --- a/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c +++ b/OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c @@ -169,16 +169,17 @@ int main(int argc, char *argv[]) { 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++){ (*operationPtr)(my_cipher, working_buffer, working_buffer); working_buffer += block_size; } - + } double time=TimeStop(t); - printf("ratio %e\n",(double)input_size/time); + printf("ratio %e\n",(double)input_size*100/time); FILE *out_fd; out_fd = fopen(argv[6],"wb"); -- 2.39.5