From e61cc0bfb05381adc27ae05af02619b71ec8e95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 1 Apr 2021 16:19:33 +0200 Subject: [PATCH] src: fix typos in crypto comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/38024 Reviewed-By: Darshan Sen Reviewed-By: Filip Skokan Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Juan José Arboleda --- src/crypto/crypto_keygen.h | 2 +- src/crypto/crypto_pbkdf2.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/crypto_keygen.h b/src/crypto/crypto_keygen.h index 59e7e2ce7cec4e..3dcbd2f0cecfd1 100644 --- a/src/crypto/crypto_keygen.h +++ b/src/crypto/crypto_keygen.h @@ -71,7 +71,7 @@ class KeyGenJob final : public CryptoJob { std::move(params)) {} void DoThreadPoolWork() override { - // Make sure the the CSPRNG is properly seeded so the results are secure + // Make sure the CSPRNG is properly seeded so the results are secure. CheckEntropy(); AdditionalParams* params = CryptoJob::params(); diff --git a/src/crypto/crypto_pbkdf2.cc b/src/crypto/crypto_pbkdf2.cc index 8cf36cdf8dc036..cc9a0d072ad13c 100644 --- a/src/crypto/crypto_pbkdf2.cc +++ b/src/crypto/crypto_pbkdf2.cc @@ -33,7 +33,7 @@ PBKDF2Config& PBKDF2Config::operator=(PBKDF2Config&& other) noexcept { } void PBKDF2Config::MemoryInfo(MemoryTracker* tracker) const { - // The the job is sync, the PBKDF2Config does not own the data + // The job is sync, the PBKDF2Config does not own the data. if (mode == kCryptoJobAsync) { tracker->TrackFieldWithSize("pass", pass.size()); tracker->TrackFieldWithSize("salt", salt.size());