forked from wolfSSL/wolfssl
Fix AES192-ECB in EVP_CipherInit
This commit is contained in:
committed by
Jacob Barthelmeh
parent
5237a25699
commit
641af21cb0
@@ -13408,7 +13408,6 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
|
|||||||
if (enc == 0 || enc == 1)
|
if (enc == 0 || enc == 1)
|
||||||
ctx->enc = enc ? 1 : 0;
|
ctx->enc = enc ? 1 : 0;
|
||||||
if (key) {
|
if (key) {
|
||||||
if(ctx->enc)
|
|
||||||
ret = wc_AesSetKey(&ctx->cipher.aes, key, ctx->keyLen, NULL,
|
ret = wc_AesSetKey(&ctx->cipher.aes, key, ctx->keyLen, NULL,
|
||||||
ctx->enc ? AES_ENCRYPTION : AES_DECRYPTION);
|
ctx->enc ? AES_ENCRYPTION : AES_DECRYPTION);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user