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:
Tobias Nießen 2017-12-18 13:23:46 +01:00
parent 3bb6f07d52
commit 0298f4480e
No known key found for this signature in database
GPG Key ID: 718207F8FD156B70

View File

@ -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);
}