Botan 3.7.1
Crypto and TLS for C&
|
#include <cmce_encaps.h>
Public Member Functions | |
Classic_McEliece_Encryptor (std::shared_ptr< Classic_McEliece_PublicKeyInternal > key, std::string_view kdf) | |
size_t | encapsulated_key_length () const override |
void | kem_encrypt (std::span< uint8_t > out_encapsulated_key, std::span< uint8_t > out_shared_key, RandomNumberGenerator &rng, size_t desired_shared_key_len, std::span< const uint8_t > salt) final |
void | raw_kem_encrypt (std::span< uint8_t > out_encapsulated_key, std::span< uint8_t > out_shared_key, RandomNumberGenerator &rng) override |
size_t | raw_kem_shared_key_length () const override |
size_t | shared_key_length (size_t desired_shared_key_len) const final |
Classic McEliece Encapsulation Operation
Definition at line 28 of file cmce_encaps.h.
|
inline |
Definition at line 30 of file cmce_encaps.h.
|
inlineoverridevirtual |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 35 of file cmce_encaps.h.
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 206 of file pk_ops.cpp.
References BOTAN_ARG_CHECK, BOTAN_ASSERT_EQUAL, and BOTAN_ASSERT_NOMSG.
|
overridevirtual |
Implements Botan::PK_Ops::KEM_Encryption_with_KDF.
Definition at line 84 of file cmce_encaps.cpp.
References BOTAN_ARG_CHECK, BOTAN_ASSERT_NOMSG, Botan::ceil_tobytes(), Botan::BufferStuffer::full(), Botan::detail::Strong_Base< T >::get(), Botan::BufferStuffer::next(), and Botan::CT::unpoison_all().
|
inlineoverridevirtual |
Implements Botan::PK_Ops::KEM_Encryption_with_KDF.
Definition at line 33 of file cmce_encaps.h.
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 198 of file pk_ops.cpp.