X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/4bcc3f81d0c19f0252e500cb67f0e94d9e2e4711..3a3b3ed0b533fdd222a8a6d05a9a8c4fc09a3830:/OneRoundIoT/openssl/openssl_evp_cmac.c diff --git a/OneRoundIoT/openssl/openssl_evp_cmac.c b/OneRoundIoT/openssl/openssl_evp_cmac.c index 5f0fa0d..f1d3984 100755 --- a/OneRoundIoT/openssl/openssl_evp_cmac.c +++ b/OneRoundIoT/openssl/openssl_evp_cmac.c @@ -118,7 +118,7 @@ unsigned char mact[16] = {0}; if(1 != CMAC_Final(ctx, mact, &mactlen)) handleErrors(); ciphertext_len += len; - printBytes(mact, mactlen); + // printBytes(mact, mactlen); /* Clean up */ CMAC_CTX_free(ctx); @@ -315,8 +315,9 @@ int main (int argc, char** argv) time_encrypt+=TimeStop(t); // printf("Time encrypt %f\n",time); - printf("%f\t",(double)imsize*nb_test/time_encrypt); + printf("%e\t",(double)imsize*nb_test/time_encrypt); + /* if(lena) { for(int i=0;i