9#include <botan/internal/sp800_56c_two_step.h>
11#include <botan/internal/fmt.h>
16 return fmt(
"SP800-56C({})", m_prf->name());
20 return std::make_unique<SP800_56C_Two_Step>(m_prf->new_object(), m_exp->new_object());
23void SP800_56C_Two_Step::perform_kdf(std::span<uint8_t> key,
24 std::span<const uint8_t> secret,
25 std::span<const uint8_t> salt,
26 std::span<const uint8_t> label)
const {
29 m_prf->update(secret);
30 const auto k_dk = m_prf->final();
33 m_exp->derive_key(key, k_dk, {} , label);
std::unique_ptr< KDF > new_object() const override
std::string name() const override
std::string fmt(std::string_view format, const T &... args)