36 std::string
name()
const override {
return "HKDF(" + m_prf->name() +
")"; }
38 size_t kdf(uint8_t key[],
size_t key_len,
39 const uint8_t secret[],
size_t secret_len,
40 const uint8_t salt[],
size_t salt_len,
41 const uint8_t label[],
size_t label_len)
const override;
44 std::unique_ptr<MessageAuthenticationCode> m_prf;
60 std::string
name()
const override {
return "HKDF-Extract(" + m_prf->name() +
")"; }
62 size_t kdf(uint8_t key[],
size_t key_len,
63 const uint8_t secret[],
size_t secret_len,
64 const uint8_t salt[],
size_t salt_len,
65 const uint8_t label[],
size_t label_len)
const override;
68 std::unique_ptr<MessageAuthenticationCode> m_prf;
84 std::string
name()
const override {
return "HKDF-Expand(" + m_prf->name() +
")"; }
86 size_t kdf(uint8_t key[],
size_t key_len,
87 const uint8_t secret[],
size_t secret_len,
88 const uint8_t salt[],
size_t salt_len,
89 const uint8_t label[],
size_t label_len)
const override;
92 std::unique_ptr<MessageAuthenticationCode> m_prf;
106secure_vector<uint8_t>
108 const
std::
string& hash_fn,
109 const uint8_t secret[],
size_t secret_len,
110 const
std::
string& label,
111 const uint8_t hash_val[],
size_t hash_val_len,
std::string name() const override
HKDF_Expand(MessageAuthenticationCode *prf)
KDF * clone() const override
std::string name() const override
KDF * clone() const override
HKDF(MessageAuthenticationCode *prf)
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
secure_vector< uint8_t > hkdf_expand_label(const std::string &hash_fn, const uint8_t secret[], size_t secret_len, const std::string &label, const uint8_t hash_val[], size_t hash_val_len, size_t length)