aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pbkdf/argon2/argon2.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-04-08 10:30:16 -0400
committerJack Lloyd <[email protected]>2021-04-08 10:40:03 -0400
commitefeb1f18094c7f507ddca5d99b024b3db314cf8f (patch)
tree32143efe5125d93a63f165d051de20e99da7f5a7 /src/lib/pbkdf/argon2/argon2.h
parent52fa621f07cef332987b5ed891e56de98d6afa49 (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.h6
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; }