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 96c8781 commit 1e1478aCopy full SHA for 1e1478a
src/node_crypto.cc
@@ -3256,7 +3256,7 @@ void CipherBase::Init(const char* cipher_type,
3256
nullptr,
3257
reinterpret_cast<unsigned char*>(key),
3258
reinterpret_cast<unsigned char*>(iv),
3259
- kind_ == kCipher);
+ encrypt);
3260
initialised_ = true;
3261
}
3262
@@ -3324,7 +3324,7 @@ void CipherBase::InitIv(const char* cipher_type,
3324
3325
reinterpret_cast<const unsigned char*>(key),
3326
reinterpret_cast<const unsigned char*>(iv),
3327
3328
3329
3330
0 commit comments