X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/d252a09c09194eb764275de868606ba944ad0f97..7b103f4c6e89146a02de0d93743cdea4d97bcde8:/OneRoundIoT/openssl/openssl_evp.c?ds=inline diff --git a/OneRoundIoT/openssl/openssl_evp.c b/OneRoundIoT/openssl/openssl_evp.c index 77dba80..6860932 100644 --- a/OneRoundIoT/openssl/openssl_evp.c +++ b/OneRoundIoT/openssl/openssl_evp.c @@ -135,6 +135,9 @@ int decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, //256 + for(int i=0;i ecb if(ctr) { if(1 != EVP_DecryptInit_ex(ctx, EVP_aes_128_ctr(), NULL, key, iv)) @@ -152,13 +155,12 @@ int decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, double t=0; t=TimeStart(); */ - for(int i=0;i