We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e7f9de commit 13fb05eCopy full SHA for 13fb05e
src/crypto/crypto_aes.cc
@@ -556,7 +556,10 @@ Maybe<bool> AESCipherTraits::AdditionalConfig(
556
}
557
558
params->cipher = EVP_get_cipherbynid(cipher_nid);
559
- CHECK_NOT_NULL(params->cipher);
+ if (params->cipher == nullptr) {
560
+ THROW_ERR_CRYPTO_UNKNOWN_CIPHER(env);
561
+ return Nothing<bool>();
562
+ }
563
564
if (params->iv.size() <
565
static_cast<size_t>(EVP_CIPHER_iv_length(params->cipher))) {
0 commit comments