diff options
author | Jack Lloyd <[email protected]> | 2021-04-07 11:43:58 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-07 11:44:07 -0400 |
commit | 69c0bd859c19a33e44e6874f3ceae343332b28a9 (patch) | |
tree | f73e507ee637f9d447a900276b6cb2ac03a0db3b /src/lib/pbkdf/argon2/argon2.h | |
parent | 833aa251c7ebf0011699ca8d3d854ed118a17af4 (diff) |
Move Argon2 formatting to argon2fmt module
Diffstat (limited to 'src/lib/pbkdf/argon2/argon2.h')
-rw-r--r-- | src/lib/pbkdf/argon2/argon2.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/lib/pbkdf/argon2/argon2.h b/src/lib/pbkdf/argon2/argon2.h index 3a1b859f0..82880031a 100644 --- a/src/lib/pbkdf/argon2/argon2.h +++ b/src/lib/pbkdf/argon2/argon2.h @@ -9,6 +9,10 @@ #include <botan/pwdhash.h> +#if defined(BOTAN_HAS_ARGON2_FMT) + #include <botan/argon2fmt.h> +#endif + //BOTAN_FUTURE_INTERNAL_HEADER(argon2.h) namespace Botan { @@ -98,21 +102,6 @@ void BOTAN_PUBLIC_API(2,11) argon2(uint8_t output[], size_t output_len, const uint8_t ad[], size_t ad_len, uint8_t y, size_t p, size_t M, size_t t); -std::string BOTAN_PUBLIC_API(2,11) - argon2_generate_pwhash(const char* password, size_t password_len, - RandomNumberGenerator& rng, - size_t p, size_t M, size_t t, - uint8_t y = 2, size_t salt_len = 16, size_t output_len = 32); - -/** -* Check a previously created password hash -* @param password the password to check against -* @param password_len the length of password -* @param hash the stored hash to check against -*/ -bool BOTAN_PUBLIC_API(2,11) argon2_check_pwhash(const char* password, size_t password_len, - const std::string& hash); - } #endif |