Botan 3.6.1
Crypto and TLS for C&
Botan::PK_Ops::KEM_Encryption Class Referenceabstract

#include <pk_ops.h>

Inheritance diagram for Botan::PK_Ops::KEM_Encryption:
Botan::PK_Ops::KEM_Encryption_with_KDF Botan::Kyber_KEM_Encryptor_Base Botan::Kyber_KEM_Encryptor Botan::ML_KEM_Encryptor

Public Member Functions

virtual size_t encapsulated_key_length () const =0
 
virtual 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)=0
 
virtual size_t shared_key_length (size_t desired_shared_key_len) const =0
 
virtual ~KEM_Encryption ()=default
 

Detailed Description

KEM (key encapsulation)

Definition at line 156 of file pk_ops.h.

Constructor & Destructor Documentation

◆ ~KEM_Encryption()

virtual Botan::PK_Ops::KEM_Encryption::~KEM_Encryption ( )
virtualdefault

Member Function Documentation

◆ encapsulated_key_length()

virtual size_t Botan::PK_Ops::KEM_Encryption::encapsulated_key_length ( ) const
pure virtual

◆ kem_encrypt()

virtual void Botan::PK_Ops::KEM_Encryption::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 )
pure virtual

◆ shared_key_length()

virtual size_t Botan::PK_Ops::KEM_Encryption::shared_key_length ( size_t desired_shared_key_len) const
pure virtual

The documentation for this class was generated from the following file: