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 850da0f commit e2b7ad8Copy full SHA for e2b7ad8
src/node_crypto.cc
@@ -3372,7 +3372,7 @@ void CipherBase::Init(const char* cipher_type,
3372
nullptr,
3373
reinterpret_cast<unsigned char*>(key),
3374
reinterpret_cast<unsigned char*>(iv),
3375
- kind_ == kCipher);
+ encrypt);
3376
initialised_ = true;
3377
}
3378
@@ -3440,7 +3440,7 @@ void CipherBase::InitIv(const char* cipher_type,
3440
3441
reinterpret_cast<const unsigned char*>(key),
3442
reinterpret_cast<const unsigned char*>(iv),
3443
3444
3445
3446
0 commit comments