|
Botan 3.14.1
Crypto and TLS for C&
|
#include <dilithium_round3_symmetric_primitives.h>
Public Member Functions | |
| DilithiumDecodedKeypair | decode_keypair (std::span< const uint8_t > private_key, DilithiumConstants mode) const override |
| secure_vector< uint8_t > | encode_keypair (const DilithiumInternalKeypair &keypair, MlPrivateKeyFormat format) const override |
Static Public Member Functions | |
| static std::unique_ptr< Dilithium_Keypair_Codec > | create (DilithiumMode mode) |
Definition at line 20 of file dilithium_round3_symmetric_primitives.h.
|
staticinherited |
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().
|
overridevirtual |
Decodes any supported private key encoding and reports the format that was detected.
Implements Botan::Dilithium_Keypair_Codec.
Definition at line 26 of file dilithium_round3_symmetric_primitives.cpp.
References BOTAN_ARG_CHECK, Botan::Dilithium_Algos::decode_keypair(), Botan::Expanded, Botan::DilithiumMode::is_available(), Botan::DilithiumConstants::mode(), and Botan::DilithiumConstants::private_key_bytes().
|
overridevirtual |
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 |
Implements Botan::Dilithium_Keypair_Codec.
Definition at line 18 of file dilithium_round3_symmetric_primitives.cpp.
References Botan::Dilithium_Algos::encode_keypair(), Botan::Expanded, and Botan::detail::Strong_Base< T >::get().