From 641af21cb0f3f784ff07bd4c18a64067de2a8484 Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Fri, 3 Mar 2017 13:38:21 +0900 Subject: [PATCH] Fix AES192-ECB in EVP_CipherInit --- src/ssl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 86a17d326..92e14f5b0 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -13408,7 +13408,6 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md) if (enc == 0 || enc == 1) ctx->enc = enc ? 1 : 0; if (key) { - if(ctx->enc) ret = wc_AesSetKey(&ctx->cipher.aes, key, ctx->keyLen, NULL, ctx->enc ? AES_ENCRYPTION : AES_DECRYPTION); }