printf("Block Size: %d\n", my_cipher.block_size);
+ uint8_t *backup_buffer;
double t=TimeStart();
+
- uint8_t *backup_buffer = working_buffer;
- for(int block=0; block < input_size / block_size; block++){
+ for(int i=0;i<100;i++) {
+
+ *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");