crypto: reuse variable instead of reevaluation
PR-URL: https://github.com/nodejs/node/pull/17735 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
3bb6f07d52
commit
0298f4480e
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user