aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/pbkdf/pbkdf2/pbkdf2.h2
-rw-r--r--src/lib/pbkdf/pgp_s2k/pgp_s2k.h2
-rw-r--r--src/lib/pbkdf/scrypt/scrypt.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/pbkdf/pbkdf2/pbkdf2.h b/src/lib/pbkdf/pbkdf2/pbkdf2.h
index 72637bc30..65955eb28 100644
--- a/src/lib/pbkdf/pbkdf2/pbkdf2.h
+++ b/src/lib/pbkdf/pbkdf2/pbkdf2.h
@@ -49,7 +49,7 @@ class BOTAN_PUBLIC_API(2,8) PBKDF2 final : public PasswordHash
std::string to_string() const override;
void derive_key(uint8_t out[], size_t out_len,
- const char* password, const size_t password_len,
+ const char* password, size_t password_len,
const uint8_t salt[], size_t salt_len) const override;
private:
std::unique_ptr<MessageAuthenticationCode> m_prf;
diff --git a/src/lib/pbkdf/pgp_s2k/pgp_s2k.h b/src/lib/pbkdf/pgp_s2k/pgp_s2k.h
index 79db4c1d7..4ce934a2b 100644
--- a/src/lib/pbkdf/pgp_s2k/pgp_s2k.h
+++ b/src/lib/pbkdf/pgp_s2k/pgp_s2k.h
@@ -117,7 +117,7 @@ class BOTAN_PUBLIC_API(2,8) RFC4880_S2K final : public PasswordHash
size_t iterations() const override { return m_iterations; }
void derive_key(uint8_t out[], size_t out_len,
- const char* password, const size_t password_len,
+ const char* password, size_t password_len,
const uint8_t salt[], size_t salt_len) const override;
private:
diff --git a/src/lib/pbkdf/scrypt/scrypt.h b/src/lib/pbkdf/scrypt/scrypt.h
index 42d0f0a3b..b5060fa47 100644
--- a/src/lib/pbkdf/scrypt/scrypt.h
+++ b/src/lib/pbkdf/scrypt/scrypt.h
@@ -27,7 +27,7 @@ class BOTAN_PUBLIC_API(2,8) Scrypt final : public PasswordHash
* Derive a new key under the current Scrypt parameter set
*/
void derive_key(uint8_t out[], size_t out_len,
- const char* password, const size_t password_len,
+ const char* password, size_t password_len,
const uint8_t salt[], size_t salt_len) const override;
std::string to_string() const override;