Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
crypto: reuse variable instead of reevaluation
  • Loading branch information
tniessen committed Dec 18, 2017
commit eb11bc26e735228c59a95b5e04ecb28f43b33495
4 changes: 2 additions & 2 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3662,7 +3662,7 @@ void CipherBase::Init(const char* cipher_type,
nullptr,
reinterpret_cast<unsigned char*>(key),
reinterpret_cast<unsigned char*>(iv),
kind_ == kCipher);
encrypt);
}


Expand Down Expand Up @@ -3725,7 +3725,7 @@ void CipherBase::InitIv(const char* cipher_type,
nullptr,
reinterpret_cast<const unsigned char*>(key),
reinterpret_cast<const unsigned char*>(iv),
kind_ == kCipher);
encrypt);
}


Expand Down