|
Botan 3.14.1
Crypto and TLS for C&
|
#include <dilithium_keys.h>
Public Member Functions | |
| virtual DilithiumDecodedKeypair | decode_keypair (std::span< const uint8_t > private_key, DilithiumConstants mode) const =0 |
| virtual secure_vector< uint8_t > | encode_keypair (const DilithiumInternalKeypair &keypair, MlPrivateKeyFormat format) const =0 |
| virtual | ~Dilithium_Keypair_Codec ()=default |
Static Public Member Functions | |
| static std::unique_ptr< Dilithium_Keypair_Codec > | create (DilithiumMode mode) |
Definition at line 30 of file dilithium_keys.h.
|
virtualdefault |
|
static |
Definition at line 22 of file dilithium_keys.cpp.
References Botan::DilithiumMode::is_dilithium_round3(), and Botan::DilithiumMode::is_ml_dsa().
Referenced by Botan::DilithiumConstants::DilithiumConstants().
|
pure virtual |
Decodes any supported private key encoding and reports the format that was detected.
Implemented in Botan::Dilithium_Expanded_Keypair_Codec, and Botan::ML_DSA_Expanding_Keypair_Codec.
Referenced by Botan::Dilithium_PrivateKey::Dilithium_PrivateKey().
|
pure virtual |
Encodes the private key in the given format as content of the PKCS#8 privateKey field.
| Encoding_Error | if the key cannot be encoded in format |
Implemented in Botan::Dilithium_Expanded_Keypair_Codec, and Botan::ML_DSA_Expanding_Keypair_Codec.