Botan 3.6.1
Crypto and TLS for C&
|
#include <kyber_encaps_base.h>
Public Member Functions | |
size_t | encapsulated_key_length () const override |
void | kem_decrypt (std::span< uint8_t > out_shared_key, std::span< const uint8_t > encapsulated_key, size_t desired_shared_key_len, std::span< const uint8_t > salt) final |
void | raw_kem_decrypt (std::span< uint8_t > out_shared_key, std::span< const uint8_t > encapsulated_key) 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 | decapsulate (StrongSpan< KyberSharedSecret > out_shared_key, StrongSpan< const KyberCompressedCiphertext > encapsulated_key)=0 |
Kyber_KEM_Decryptor_Base (std::string_view kdf, const Kyber_PublicKeyInternal &pk) | |
virtual const KyberConstants & | mode () const =0 |
const KyberPolyMat & | precomputed_matrix_At () const |
Definition at line 58 of file kyber_encaps_base.h.
|
inlineprotected |
Definition at line 71 of file kyber_encaps_base.h.
|
protectedpure virtual |
Implemented in Botan::Kyber_KEM_Decryptor, and Botan::ML_KEM_Decryptor.
Referenced by raw_kem_decrypt().
|
inlineoverridevirtual |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 63 of file kyber_encaps_base.h.
References Botan::KyberConstants::ciphertext_bytes(), and mode().
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 219 of file pk_ops.cpp.
References BOTAN_ARG_CHECK, and BOTAN_ASSERT_EQUAL.
|
protectedpure virtual |
Implemented in Botan::Kyber_KEM_Decryptor, and Botan::ML_KEM_Decryptor.
Referenced by encapsulated_key_length(), and raw_kem_shared_key_length().
|
inlineprotectedinherited |
Definition at line 23 of file kyber_encaps_base.h.
Referenced by Botan::Kyber_KEM_Decryptor::decapsulate(), Botan::ML_KEM_Decryptor::decapsulate(), Botan::Kyber_KEM_Encryptor::encapsulate(), and Botan::ML_KEM_Encryptor::encapsulate().
|
inlinefinalvirtual |
Implements Botan::PK_Ops::KEM_Decryption_with_KDF.
Definition at line 65 of file kyber_encaps_base.h.
References decapsulate().
|
inlineoverridevirtual |
Implements Botan::PK_Ops::KEM_Decryption_with_KDF.
Definition at line 61 of file kyber_encaps_base.h.
References mode(), and Botan::KyberConstants::shared_key_bytes().
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 211 of file pk_ops.cpp.