]> AND Private Git Repository - Cipher_code.git/blobdiff - OneRoundIoT/EnhancedOneRound/Simon_speck/C/user_tool.c
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
IDA_new
[Cipher_code.git] / OneRoundIoT / EnhancedOneRound / Simon_speck / C / user_tool.c
index 1d5187afead4fc99f8f98399f5f171c723a00d89..d113388e6e7579de95899f77af7b060d9eadc208 100644 (file)
@@ -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;