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_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 |
Kyber_KEM_Decryptor (std::shared_ptr< const Kyber_PrivateKeyInternal > private_key, std::shared_ptr< const Kyber_PublicKeyInternal > public_key, std::string_view kdf) | |
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 | |
void | decapsulate (StrongSpan< KyberSharedSecret > out_shared_key, StrongSpan< const KyberCompressedCiphertext > encapsulated_key) override |
const KyberConstants & | mode () const override |
Definition at line 36 of file kyber_encaps.h.
|
inline |
Definition at line 38 of file kyber_encaps.h.
|
overrideprotectedvirtual |
Crystals Kyber (Version 3.01), Algorithm 9 (Kyber.CCAKEM.Dec())
Implements Botan::Kyber_KEM_Decryptor_Base.
Definition at line 39 of file kyber_encaps.cpp.
References BOTAN_ASSERT_NOMSG, Botan::CT::conditional_copy_mem(), Botan::StrongSpan< T >::data(), Botan::Ciphertext::from_bytes(), Botan::CT::is_equal(), Botan::KyberConstants::kSymBytes, and Botan::StrongSpan< T >::size().
|
inlineoverridevirtualinherited |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 47 of file kyber_encaps_base.h.
References Botan::KyberConstants::encapsulated_key_length(), and Botan::Kyber_KEM_Decryptor_Base::mode().
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 204 of file pk_ops.cpp.
References BOTAN_ARG_CHECK, and BOTAN_ASSERT_EQUAL.
|
inlineoverrideprotectedvirtual |
Implements Botan::Kyber_KEM_Decryptor_Base.
Definition at line 47 of file kyber_encaps.h.
|
inlinefinalvirtualinherited |
Implements Botan::PK_Ops::KEM_Decryption_with_KDF.
Definition at line 49 of file kyber_encaps_base.h.
References Botan::Kyber_KEM_Decryptor_Base::decapsulate().
|
inlineoverridevirtualinherited |
Implements Botan::PK_Ops::KEM_Decryption_with_KDF.
Definition at line 45 of file kyber_encaps_base.h.
References Botan::Kyber_KEM_Decryptor_Base::mode(), and Botan::KyberConstants::shared_key_length().
|
finalvirtualinherited |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 196 of file pk_ops.cpp.