Botan 3.5.0
Crypto and TLS for C&
|
#include <kyber_encaps_base.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 |
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 | |
virtual void | encapsulate (StrongSpan< KyberCompressedCiphertext > out_encapsulated_key, StrongSpan< KyberSharedSecret > out_shared_key, RandomNumberGenerator &rng)=0 |
Kyber_KEM_Encryptor_Base (std::string_view kdf) | |
virtual const KyberConstants & | mode () const =0 |
Definition at line 19 of file kyber_encaps_base.h.
|
inlineprotected |
Definition at line 34 of file kyber_encaps_base.h.
|
protectedpure virtual |
Implemented in Botan::Kyber_KEM_Encryptor.
Referenced by raw_kem_encrypt().
|
inlineoverridevirtual |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 23 of file kyber_encaps_base.h.
References Botan::KyberConstants::encapsulated_key_length(), and 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.
|
protectedpure virtual |
Implemented in Botan::Kyber_KEM_Encryptor.
Referenced by encapsulated_key_length(), and raw_kem_shared_key_length().
|
inlinefinalvirtual |
Implements Botan::PK_Ops::KEM_Encryption_with_KDF.
Definition at line 25 of file kyber_encaps_base.h.
References encapsulate().
|
inlineoverridevirtual |
Implements Botan::PK_Ops::KEM_Encryption_with_KDF.
Definition at line 21 of file kyber_encaps_base.h.
References mode(), and Botan::KyberConstants::shared_key_length().
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Encryption.
Definition at line 161 of file pk_ops.cpp.