diff options
author | Jack Lloyd <[email protected]> | 2022-02-06 08:27:33 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2022-02-06 08:52:17 -0500 |
commit | cecf821343290dbf5cdfa4f5d4c27d219f6460c0 (patch) | |
tree | 136274f506562c68d7ca517ba12201954193b863 /src/lib/pbkdf | |
parent | a651ccc4da6d329500e45cd972b9a5d7e284ccdb (diff) |
Fix clang-tidy readability-named-parameter
Diffstat (limited to 'src/lib/pbkdf')
-rw-r--r-- | src/lib/pbkdf/pbkdf2/pbkdf2.cpp | 4 | ||||
-rw-r--r-- | src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp index 68e1ae45b..f3982d006 100644 --- a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp +++ b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp @@ -204,7 +204,7 @@ std::string PBKDF2_Family::name() const return "PBKDF2(" + m_prf->name() + ")"; } -std::unique_ptr<PasswordHash> PBKDF2_Family::tune(size_t output_len, std::chrono::milliseconds msec, size_t) const +std::unique_ptr<PasswordHash> PBKDF2_Family::tune(size_t output_len, std::chrono::milliseconds msec, size_t /*max_memory_usage_mb*/) const { return std::make_unique<PBKDF2>(*m_prf, output_len, msec); } @@ -214,7 +214,7 @@ std::unique_ptr<PasswordHash> PBKDF2_Family::default_params() const return std::make_unique<PBKDF2>(*m_prf, 150000); } -std::unique_ptr<PasswordHash> PBKDF2_Family::from_params(size_t iter, size_t, size_t) const +std::unique_ptr<PasswordHash> PBKDF2_Family::from_params(size_t iter, size_t /*i2*/, size_t /*i3*/) const { return std::make_unique<PBKDF2>(*m_prf, iter); } diff --git a/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp b/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp index 0d78f4358..f4dff816b 100644 --- a/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp +++ b/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp @@ -98,7 +98,7 @@ std::string RFC4880_S2K_Family::name() const return "OpenPGP-S2K(" + m_hash->name() + ")"; } -std::unique_ptr<PasswordHash> RFC4880_S2K_Family::tune(size_t output_len, std::chrono::milliseconds msec, size_t) const +std::unique_ptr<PasswordHash> RFC4880_S2K_Family::tune(size_t output_len, std::chrono::milliseconds msec, size_t /*max_memory_usage_mb*/) const { const auto tune_time = BOTAN_PBKDF_TUNING_TIME; @@ -122,7 +122,7 @@ std::unique_ptr<PasswordHash> RFC4880_S2K_Family::tune(size_t output_len, std::c return std::make_unique<RFC4880_S2K>(m_hash->clone(), iterations); } -std::unique_ptr<PasswordHash> RFC4880_S2K_Family::from_params(size_t iter, size_t, size_t) const +std::unique_ptr<PasswordHash> RFC4880_S2K_Family::from_params(size_t iter, size_t /*i2*/, size_t /*i3*/) const { return std::make_unique<RFC4880_S2K>(m_hash->clone(), iter); } |