Botan 3.7.1
Crypto and TLS for C&
|
Representation of a Classic McEliece key pair. More...
#include <cmce_keys_internal.h>
Public Member Functions | |
std::pair< std::shared_ptr< Classic_McEliece_PrivateKeyInternal >, std::shared_ptr< Classic_McEliece_PublicKeyInternal > > | decompose_to_pair () && |
Decompose the key pair into a pair of shared pointers to the private and public key. | |
Static Public Member Functions | |
static Classic_McEliece_KeyPair_Internal | generate (const Classic_McEliece_Parameters ¶ms, StrongSpan< const CmceInitialSeed > seed) |
Generate a Classic McEliece key pair using the algorithm described in Classic McEliece ISO Section 8.3. | |
Public Attributes | |
std::shared_ptr< Classic_McEliece_PrivateKeyInternal > | private_key |
std::shared_ptr< Classic_McEliece_PublicKeyInternal > | public_key |
Representation of a Classic McEliece key pair.
Definition at line 189 of file cmce_keys_internal.h.
|
inline |
Decompose the key pair into a pair of shared pointers to the private and public key.
Definition at line 205 of file cmce_keys_internal.h.
Referenced by Botan::Classic_McEliece_PrivateKey::Classic_McEliece_PrivateKey().
|
static |
Generate a Classic McEliece key pair using the algorithm described in Classic McEliece ISO Section 8.3.
Definition at line 149 of file cmce_keys_internal.cpp.
References Botan::StrongSpan< T >::begin(), BOTAN_ASSERT_EQUAL, Botan::StrongSpan< T >::end(), Botan::Classic_McEliece_Parameters::seed_len(), and Botan::StrongSpan< T >::size().
Referenced by Botan::Classic_McEliece_PrivateKey::Classic_McEliece_PrivateKey().
std::shared_ptr<Classic_McEliece_PrivateKeyInternal> Botan::Classic_McEliece_KeyPair_Internal::private_key |
Definition at line 190 of file cmce_keys_internal.h.
std::shared_ptr<Classic_McEliece_PublicKeyInternal> Botan::Classic_McEliece_KeyPair_Internal::public_key |
Definition at line 191 of file cmce_keys_internal.h.