Botan 3.6.1
Crypto and TLS for C&
|
#include <dilithium.h>
Public Types | |
enum | Mode { Dilithium4x4 = 1 , Dilithium4x4_AES , Dilithium6x5 , Dilithium6x5_AES , Dilithium8x7 , Dilithium8x7_AES , ML_DSA_4x4 , ML_DSA_6x5 , ML_DSA_8x7 } |
Public Member Functions | |
DilithiumMode (const OID &oid) | |
DilithiumMode (Mode mode) | |
DilithiumMode (std::string_view str) | |
bool | is_aes () const |
bool | is_available () const |
bool | is_dilithium_round3 () const |
bool | is_ml_dsa () const |
bool | is_modern () const |
Mode | mode () const |
OID | object_identifier () const |
std::string | to_string () const |
Definition at line 21 of file dilithium.h.
Enumerator | |
---|---|
Dilithium4x4 | |
Dilithium4x4_AES | |
Dilithium6x5 | |
Dilithium6x5_AES | |
Dilithium8x7 | |
Dilithium8x7_AES | |
ML_DSA_4x4 | |
ML_DSA_6x5 | |
ML_DSA_8x7 |
Definition at line 23 of file dilithium.h.
|
inline |
Definition at line 36 of file dilithium.h.
|
explicit |
Definition at line 65 of file dilithium.cpp.
|
explicit |
Definition at line 67 of file dilithium.cpp.
bool Botan::DilithiumMode::is_aes | ( | ) | const |
Definition at line 98 of file dilithium.cpp.
References Dilithium4x4_AES, Dilithium6x5_AES, and Dilithium8x7_AES.
Referenced by Botan::DilithiumConstants::is_aes(), is_available(), and is_modern().
bool Botan::DilithiumMode::is_available | ( | ) | const |
Definition at line 110 of file dilithium.cpp.
References is_aes(), is_dilithium_round3(), is_ml_dsa(), and is_modern().
Referenced by Botan::Dilithium_Expanded_Keypair_Codec::decode_keypair(), Botan::Dilithium_PrivateKey::Dilithium_PrivateKey(), and Botan::Dilithium_PublicKey::Dilithium_PublicKey().
|
inline |
Definition at line 48 of file dilithium.h.
Referenced by Botan::Dilithium_Keypair_Codec::create(), and is_available().
bool Botan::DilithiumMode::is_ml_dsa | ( | ) | const |
Definition at line 106 of file dilithium.cpp.
References ML_DSA_4x4, ML_DSA_6x5, and ML_DSA_8x7.
Referenced by Botan::Dilithium_Keypair_Codec::create(), is_available(), and Botan::DilithiumConstants::is_ml_dsa().
bool Botan::DilithiumMode::is_modern | ( | ) | const |
Definition at line 102 of file dilithium.cpp.
References is_aes().
Referenced by is_available(), and Botan::DilithiumConstants::is_modern().
|
inline |
Definition at line 52 of file dilithium.h.
Referenced by Botan::DilithiumConstants::DilithiumConstants().
OID Botan::DilithiumMode::object_identifier | ( | ) | const |
Definition at line 69 of file dilithium.cpp.
References Botan::OID::from_string(), and to_string().
std::string Botan::DilithiumMode::to_string | ( | ) | const |
Definition at line 73 of file dilithium.cpp.
References BOTAN_ASSERT_UNREACHABLE, Dilithium4x4, Dilithium4x4_AES, Dilithium6x5, Dilithium6x5_AES, Dilithium8x7, Dilithium8x7_AES, ML_DSA_4x4, ML_DSA_6x5, and ML_DSA_8x7.
Referenced by object_identifier().