Botan 3.7.1
Crypto and TLS for C&
|
#include <cmce_parameter_set.h>
Public Member Functions | |
Classic_McEliece_Parameter_Set (Code code) | |
Code | code () const |
Get the code for a given parameter set. | |
bool | operator== (const Classic_McEliece_Parameter_Set &other) const |
std::string | to_string () const |
Get the parameter set name for a given parameter set. | |
Static Public Member Functions | |
static Classic_McEliece_Parameter_Set | from_oid (const OID &oid) |
Get the parameter set for a given OID. | |
static Classic_McEliece_Parameter_Set | from_string (std::string_view param_name) |
Get the parameter set for a given parameter set name. | |
All Classic McEliece parameter sets defined in the NIST Round 4 submission and the Classic McEliece ISO Draft.
Instances are defined in the following format: mceliece{n}{t}{[pc]}{[f]}
Instance with 'pc' use plaintext confirmation as defined in the ISO Draft. Instance with 'f' use matrix reduction with the semi-systematic form.
Definition at line 26 of file cmce_parameter_set.h.
|
strong |
Definition at line 28 of file cmce_parameter_set.h.
|
inline |
Definition at line 53 of file cmce_parameter_set.h.
Referenced by from_string().
|
inline |
Get the code for a given parameter set.
Definition at line 73 of file cmce_parameter_set.h.
Referenced by Botan::Classic_McEliece_Parameters::create(), Botan::Classic_McEliece_Parameters::estimated_strength(), and from_string().
|
static |
Get the parameter set for a given OID.
Definition at line 110 of file cmce_parameter_set.cpp.
References from_string(), and Botan::OID::to_formatted_string().
Referenced by Botan::Classic_McEliece_Parameters::create().
|
static |
Get the parameter set for a given parameter set name.
Definition at line 16 of file cmce_parameter_set.cpp.
References Classic_McEliece_Parameter_Set(), ClassicMcEliece_348864, ClassicMcEliece_348864f, ClassicMcEliece_460896, ClassicMcEliece_460896f, ClassicMcEliece_6688128, ClassicMcEliece_6688128f, ClassicMcEliece_6688128pc, ClassicMcEliece_6688128pcf, ClassicMcEliece_6960119, ClassicMcEliece_6960119f, ClassicMcEliece_6960119pc, ClassicMcEliece_6960119pcf, ClassicMcEliece_8192128, ClassicMcEliece_8192128f, ClassicMcEliece_8192128pc, ClassicMcEliece_8192128pcf, code(), and Botan::fmt().
Referenced by botan_privkey_load_classic_mceliece(), botan_pubkey_load_classic_mceliece(), Botan::Classic_McEliece_Parameters::create(), Botan::create_private_key(), and from_oid().
|
inline |
Definition at line 75 of file cmce_parameter_set.h.
std::string Botan::Classic_McEliece_Parameter_Set::to_string | ( | ) | const |
Get the parameter set name for a given parameter set.
Definition at line 72 of file cmce_parameter_set.cpp.
References BOTAN_ASSERT_UNREACHABLE, ClassicMcEliece_348864, ClassicMcEliece_348864f, ClassicMcEliece_460896, ClassicMcEliece_460896f, ClassicMcEliece_6688128, ClassicMcEliece_6688128f, ClassicMcEliece_6688128pc, ClassicMcEliece_6688128pcf, ClassicMcEliece_6960119, ClassicMcEliece_6960119f, ClassicMcEliece_6960119pc, ClassicMcEliece_6960119pcf, ClassicMcEliece_8192128, ClassicMcEliece_8192128f, ClassicMcEliece_8192128pc, and ClassicMcEliece_8192128pcf.
Referenced by Botan::Classic_McEliece_Parameters::object_identifier().