+////USAGE : ./user speck_256_128 ECB -e key lena.ppm tests.cip
+
+
//user simon_64_32 12 -e key tests tests.cip
//
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;