11#include <botan/internal/dilithium_round3_symmetric_primitives.h>
13#include <botan/exceptn.h>
14#include <botan/internal/dilithium_algos.h>
21 throw Encoding_Error(
"Dilithium round 3 private keys only support the expanded format");
#define BOTAN_ARG_CHECK(expr, msg)
DilithiumMode mode() const
size_t private_key_bytes() const
byte length of the encoded private key
bool is_available() const
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
DilithiumSerializedPrivateKey encode_keypair(const DilithiumInternalKeypair &keypair)
DilithiumInternalKeypair decode_keypair(StrongSpan< const DilithiumSerializedPrivateKey > sk, DilithiumConstants mode)
std::vector< T, secure_allocator< T > > secure_vector
std::pair< std::shared_ptr< const Dilithium_PublicKeyInternal >, std::shared_ptr< const Dilithium_PrivateKeyInternal > > DilithiumInternalKeypair
Internal representation of a Dilithium key pair.
A decoded private key together with the encoding format it was found in.