Botan 3.5.0
Crypto and TLS for C&
|
#include <kyber_encaps.h>
Public Member Functions | |
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 |
Kyber_KEM_Encryptor (std::shared_ptr< const Kyber_PublicKeyInternal > key, std::string_view kdf) | |
void | raw_kem_encrypt (std::span< uint8_t > out_encapsulated_key, std::span< uint8_t > out_shared_key, RandomNumberGenerator &rng) final |
size_t | raw_kem_shared_key_length () const override |
size_t | shared_key_length (size_t desired_shared_key_len) const final |
Protected Member Functions | |
void | encapsulate (StrongSpan< KyberCompressedCiphertext > out_encapsulated_key, StrongSpan< KyberSharedSecret > out_shared_key, RandomNumberGenerator &rng) override |
const KyberConstants & | mode () const override |
Definition at line 20 of file kyber_encaps.h.
|
inline |
Definition at line 22 of file kyber_encaps.h.
|
overrideprotectedvirtual |
Crystals Kyber (Version 3.01), Algorithm 8 (Kyber.CCAKEM.Enc())
Implements Botan::Kyber_KEM_Encryptor_Base.
Definition at line 23 of file kyber_encaps.cpp.
References Botan::KyberConstants::kSymBytes, and Botan::RandomNumberGenerator::random_vec().
|
inlineoverridevirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 23 of file kyber_encaps_base.h.
References Botan::KyberConstants::encapsulated_key_length(), and Botan::Kyber_KEM_Encryptor_Base::mode().
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 169 of file pk_ops.cpp.
References BOTAN_ARG_CHECK, BOTAN_ASSERT_EQUAL, and BOTAN_ASSERT_NOMSG.
|
inlineoverrideprotectedvirtual |
Implements Botan::Kyber_KEM_Encryptor_Base.
Definition at line 30 of file kyber_encaps.h.
|
inlinefinalvirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption_with_KDF.
Definition at line 25 of file kyber_encaps_base.h.
References Botan::Kyber_KEM_Encryptor_Base::encapsulate().
|
inlineoverridevirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption_with_KDF.
Definition at line 21 of file kyber_encaps_base.h.
References Botan::Kyber_KEM_Encryptor_Base::mode(), and Botan::KyberConstants::shared_key_length().
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 161 of file pk_ops.cpp.