10#ifndef BOTAN_KYBER_R3_ENCAPSULATION_H_
11#define BOTAN_KYBER_R3_ENCAPSULATION_H_
15#include <botan/internal/kyber_encaps_base.h>
16#include <botan/internal/kyber_keys.h>
33 std::shared_ptr<const Kyber_PublicKeyInternal> m_public_key;
39 std::shared_ptr<const Kyber_PublicKeyInternal> public_key,
40 std::string_view kdf) :
50 std::shared_ptr<const Kyber_PublicKeyInternal> m_public_key;
51 std::shared_ptr<const Kyber_PrivateKeyInternal> m_private_key;
Kyber_KEM_Decryptor(std::shared_ptr< const Kyber_PrivateKeyInternal > private_key, std::shared_ptr< const Kyber_PublicKeyInternal > public_key, std::string_view kdf)
const KyberConstants & mode() const override
void decapsulate(StrongSpan< KyberSharedSecret > out_shared_key, StrongSpan< const KyberCompressedCiphertext > encapsulated_key) override
Kyber_KEM_Encryptor(std::shared_ptr< const Kyber_PublicKeyInternal > key, std::string_view kdf)
void encapsulate(StrongSpan< KyberCompressedCiphertext > out_encapsulated_key, StrongSpan< KyberSharedSecret > out_shared_key, RandomNumberGenerator &rng) override
const KyberConstants & mode() const override
int(* final)(unsigned char *, CTX *)