diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 4387416581a559..7e7222996f941d 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3669,7 +3669,7 @@ void CipherBase::Init(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); } @@ -3738,7 +3738,7 @@ void CipherBase::InitIv(const char* cipher_type, nullptr, reinterpret_cast(key), reinterpret_cast(iv), - kind_ == kCipher); + encrypt); }