Botan 3.6.1
Crypto and TLS for C&
|
#include <ml_kem_impl.h>
Public Member Functions | |
KyberInternalKeypair | decode_keypair (std::span< const uint8_t > buffer, KyberConstants mode) const override |
secure_vector< uint8_t > | encode_keypair (KyberInternalKeypair keypair) const override |
Definition at line 108 of file ml_kem_impl.h.
|
overridevirtual |
Implements Botan::Kyber_Keypair_Codec.
Definition at line 71 of file ml_kem_impl.cpp.
References BOTAN_ASSERT_NOMSG, Botan::BufferSlicer::copy(), Botan::BufferSlicer::empty(), Botan::Kyber_Algos::expand_keypair(), and Botan::KyberConstants::SEED_BYTES.
|
overridevirtual |
Implements Botan::Kyber_Keypair_Codec.
Definition at line 82 of file ml_kem_impl.cpp.
References BOTAN_ARG_CHECK, BOTAN_ASSERT_NONNULL, and Botan::concat().