aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pbkdf
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-01 04:57:35 -0400
committerJack Lloyd <[email protected]>2018-10-01 05:03:59 -0400
commit388530b25b3de0e33f85612d91721dc190b3347d (patch)
treede40844e0e2ab707a6aaf9889521c5377ba0b28a /src/lib/pbkdf
parent38f053a5f8cb1ca351ba52d76c15491d63fd3eb0 (diff)
Avoid a MSVC 2015 warning
Diffstat (limited to 'src/lib/pbkdf')
-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;