diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 685e7bb73b5a5c..6b5958b35e7049 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3449,7 +3449,7 @@ void CipherBase::Init(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); } @@ -3518,7 +3518,7 @@ void CipherBase::InitIv(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); }