diff options
author | Jack Lloyd <[email protected]> | 2021-04-08 10:30:16 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-08 10:40:03 -0400 |
commit | efeb1f18094c7f507ddca5d99b024b3db314cf8f (patch) | |
tree | 32143efe5125d93a63f165d051de20e99da7f5a7 /src/lib/pbkdf/argon2/argon2.h | |
parent | 52fa621f07cef332987b5ed891e56de98d6afa49 (diff) |
Add derive_key variant supporting AD and secret key
Diffstat (limited to 'src/lib/pbkdf/argon2/argon2.h')
-rw-r--r-- | src/lib/pbkdf/argon2/argon2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/pbkdf/argon2/argon2.h b/src/lib/pbkdf/argon2/argon2.h index 82880031a..44447360b 100644 --- a/src/lib/pbkdf/argon2/argon2.h +++ b/src/lib/pbkdf/argon2/argon2.h @@ -37,6 +37,12 @@ class BOTAN_PUBLIC_API(2,11) Argon2 final : public PasswordHash const char* password, size_t password_len, const uint8_t salt[], size_t salt_len) const override; + void derive_key(uint8_t out[], size_t out_len, + const char* password, size_t password_len, + const uint8_t salt[], size_t salt_len, + const uint8_t ad[], size_t ad_len, + const uint8_t key[], size_t key_len) const override; + std::string to_string() const override; size_t M() const { return m_M; } |