A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
Cipher_code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new
[Cipher_code.git]
/
OneRoundIoT
/
openssl
/
openssl_evp_cmac.c
diff --git
a/OneRoundIoT/openssl/openssl_evp_cmac.c
b/OneRoundIoT/openssl/openssl_evp_cmac.c
index 5f0fa0d7b71536c2a910e6ce4a52e15d1f38550d..f1d3984fb32302cdfe250eea1c189fbb2ce26f17 100755
(executable)
--- 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;
if(1 != CMAC_Final(ctx, mact, &mactlen)) handleErrors();
ciphertext_len += len;
- printBytes(mact, mactlen);
+
//
printBytes(mact, mactlen);
/* Clean up */
CMAC_CTX_free(ctx);
/* 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);
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<oneD;i++) {
data_R[i]=ciphertext[i];
if(lena) {
for(int i=0;i<oneD;i++) {
data_R[i]=ciphertext[i];
@@
-325,7
+326,7
@@
int main (int argc, char** argv)
}
store_RGB_pixmap("lena2.ppm", data_R, data_G, data_B, width, height);
}
}
store_RGB_pixmap("lena2.ppm", data_R, data_G, data_B, width, height);
}
-
+ */
/*
t=0;
t=TimeStart();
/*
t=0;
t=TimeStart();