X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/8ba8fb459047af4b6fcad29ecb87a2b40ab0146e..18a162a51aa2e5a34b4a341c9747ae61e5f4ec4a:/OneRoundIoT/openssl/openssl_evp.c diff --git a/OneRoundIoT/openssl/openssl_evp.c b/OneRoundIoT/openssl/openssl_evp.c index 90441f1..6860932 100644 --- a/OneRoundIoT/openssl/openssl_evp.c +++ b/OneRoundIoT/openssl/openssl_evp.c @@ -62,6 +62,9 @@ int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key, //t=TimeStart(); //256 //avant ecb + for(int i=0;i ecb if(ctr) { if(1 != EVP_DecryptInit_ex(ctx, EVP_aes_128_ctr(), NULL, key, iv)) @@ -151,13 +155,12 @@ int decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, double t=0; t=TimeStart(); */ - for(int i=0;i