diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 8bf9ce4e6ff832..183db20b6bd41b 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3662,7 +3662,7 @@ void CipherBase::Init(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); } @@ -3725,7 +3725,7 @@ void CipherBase::InitIv(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); }