Fix AES192-ECB in EVP_CipherInit

This commit is contained in:
Takashi Kojo 2017-03-03 13:38:21 +09:00 committed by Jacob Barthelmeh
parent 5237a25699
commit 641af21cb0

View File

@ -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);
}