8#include <botan/internal/sp800_56c_two_step.h>
10#include <botan/internal/fmt.h>
15 return fmt(
"SP800-56C({})", m_prf->name());
19 return std::make_unique<SP800_56C_Two_Step>(m_prf->new_object(), m_exp->new_object());
24 const uint8_t secret[],
28 const uint8_t label[],
29 size_t label_len)
const {
33 m_prf->set_key(salt, salt_len);
34 m_prf->update(secret, secret_len);
38 m_exp->kdf(key, key_len, k_dk.data(), k_dk.size(),
nullptr, 0, label, label_len);
void kdf(uint8_t key[], size_t key_len, const uint8_t secret[], size_t secret_len, const uint8_t salt[], size_t salt_len, const uint8_t label[], size_t label_len) const override
std::unique_ptr< KDF > new_object() const override
std::string name() const override
std::string fmt(std::string_view format, const T &... args)
std::vector< T, secure_allocator< T > > secure_vector