From bdb76e61a70ac6da625d817bf7179e36436fa6cb Mon Sep 17 00:00:00 2001 From: couturie Date: Mon, 16 Apr 2018 13:08:49 +0200 Subject: [PATCH] correction --- OneRoundIoT/openssl/openssl_evp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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