Botan 3.9.0
Crypto and TLS for C&
|
#include <pk_ops_impl.h>
Public Member Functions | |
virtual size_t | encapsulated_key_length () const =0 |
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 |
size_t | shared_key_length (size_t desired_shared_key_len) const final |
~KEM_Decryption_with_KDF () override |
Protected Member Functions | |
KEM_Decryption_with_KDF (std::string_view kdf) | |
virtual void | raw_kem_decrypt (std::span< uint8_t > out_raw_shared_key, std::span< const uint8_t > encapsulated_key)=0 |
virtual size_t | raw_kem_shared_key_length () const =0 |
Definition at line 149 of file pk_ops_impl.h.
|
overridedefault |
|
explicitprotected |
Definition at line 262 of file pk_ops.cpp.
References Botan::KDF::create_or_throw().
Referenced by Botan::Classic_McEliece_Decryptor::Classic_McEliece_Decryptor(), Botan::Kyber_KEM_Decryptor_Base::Kyber_KEM_Decryptor_Base(), and raw_kem_shared_key_length().
|
pure virtualinherited |
|
finalvirtual |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 243 of file pk_ops.cpp.
References BOTAN_ARG_CHECK, BOTAN_ASSERT_EQUAL, raw_kem_decrypt(), and raw_kem_shared_key_length().
|
protectedpure virtual |
Implemented in Botan::Classic_McEliece_Decryptor, and Botan::Kyber_KEM_Decryptor_Base.
Referenced by kem_decrypt().
|
protectedpure virtual |
Implemented in Botan::Classic_McEliece_Decryptor, and Botan::Kyber_KEM_Decryptor_Base.
References KEM_Decryption_with_KDF().
Referenced by kem_decrypt(), and shared_key_length().
|
finalvirtual |
Implements Botan::PK_Ops::KEM_Decryption.
Definition at line 235 of file pk_ops.cpp.
References raw_kem_shared_key_length().