13#ifndef BOTAN_FRODOKEM_H_
14#define BOTAN_FRODOKEM_H_
16#include <botan/frodo_mode.h>
17#include <botan/pk_keys.h>
24class FrodoKEM_PublicKeyInternal;
25class FrodoKEM_PrivateKeyInternal;
47 std::string
algo_name()
const override {
return "FrodoKEM"; }
51 OID object_identifier()
const override;
53 size_t key_length()
const override;
55 size_t estimated_strength()
const override;
57 std::vector<uint8_t> raw_public_key_bits()
const override;
59 std::vector<uint8_t> public_key_bits()
const override;
64 return (op == PublicKeyOperation::KeyEncapsulation);
69 std::unique_ptr<PK_Ops::KEM_Encryption> create_kem_encryption_op(std::string_view params,
70 std::string_view provider)
const override;
76 std::shared_ptr<FrodoKEM_PublicKeyInternal>
m_public;
91 std::unique_ptr<Public_Key> public_key()
const override;
98 std::string_view params,
99 std::string_view provider)
const override;
102 std::shared_ptr<FrodoKEM_PrivateKeyInternal> m_private;
~FrodoKEM_PublicKey() override=default
std::shared_ptr< FrodoKEM_PublicKeyInternal > m_public
FrodoKEM_PublicKey & operator=(FrodoKEM_PublicKey &&)=default
std::string algo_name() const override
FrodoKEM_PublicKey(FrodoKEM_PublicKey &&)=default
FrodoKEM_PublicKey()=default
bool supports_operation(PublicKeyOperation op) const override
int(* final)(unsigned char *, CTX *)
#define BOTAN_DIAGNOSTIC_POP
#define BOTAN_DIAGNOSTIC_PUSH
#define BOTAN_DIAGNOSTIC_IGNORE_INHERITED_VIA_DOMINANCE
#define BOTAN_PUBLIC_API(maj, min)
std::vector< T, secure_allocator< T > > secure_vector