X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/4e82257884f5ab73a3add3a448bfc85caa8cbfa5..43dcec640e3ca462625fe259f0b2bb5660ac8131:/OneRoundIoT/openssl/openssl_evp_hmac.c?ds=inline diff --git a/OneRoundIoT/openssl/openssl_evp_hmac.c b/OneRoundIoT/openssl/openssl_evp_hmac.c index eae5d01..5e738ea 100644 --- a/OneRoundIoT/openssl/openssl_evp_hmac.c +++ b/OneRoundIoT/openssl/openssl_evp_hmac.c @@ -79,6 +79,9 @@ int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key, //avant ecb if(1 != HMAC_Init_ex(ctx, key, 32, EVP_sha256(), NULL)) handleErrors(); + + + // size_t mactlen; //unsigned char mact[16] = {0}; @@ -131,7 +134,7 @@ int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key, ciphertext_len += len; - printBytes(hash_sha256, result_len); + // printBytes(hash_sha256, result_len); /* char *p = &hash_sha256_hex[0];