mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
src: fix incorrect comments in crypto
PR-URL: https://github.com/nodejs/node/pull/44470 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
18b720805f
commit
aa34f7347b
2 files changed
+3
-3
No files matched your search
@@ -493,7 +493,7 @@ void CipherBase::InitIv(const char* cipher_type,
|
||||
|
||||
// Throw if an IV was passed which does not match the cipher's fixed IV length
|
||||
// static_cast<int> for the iv_buf.size() is safe because we've verified
|
||||
// prior that the value is not larger than MAX_INT.
|
||||
// prior that the value is not larger than INT_MAX.
|
||||
if (!is_authenticated_mode &&
|
||||
has_iv &&
|
||||
static_cast<int>(iv_buf.size()) != expected_iv_len) {
|
||||
|
||||
@@ -200,8 +200,8 @@ struct KeyPairGenTraits final {
|
||||
};
|
||||
|
||||
struct SecretKeyGenConfig final : public MemoryRetainer {
|
||||
size_t length; // Expressed a a number of bits
|
||||
char* out = nullptr; // Placeholder for the generated key bytes
|
||||
size_t length; // In bytes.
|
||||
char* out = nullptr; // Placeholder for the generated key bytes.
|
||||
|
||||
void MemoryInfo(MemoryTracker* tracker) const override;
|
||||
SET_MEMORY_INFO_NAME(SecretKeyGenConfig)
|
||||
|
||||
Reference in new issue
Block a user