]> AND Private Git Repository - Cipher_code.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
authorcouturie <you@example.com>
Fri, 1 Mar 2019 05:56:58 +0000 (06:56 +0100)
committercouturie <you@example.com>
Fri, 1 Mar 2019 05:56:58 +0000 (06:56 +0100)
OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c

index 70e76783dd656f7acd356f7929394db2ed94fe2b..1d5187afead4fc99f8f98399f5f171c723a00d89 100644 (file)
@@ -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);