Botan 3.6.1
Crypto and TLS for C&
|
#include <dilithium_round3_symmetric_primitives.h>
Static Public Member Functions | |
static std::unique_ptr< Dilithium_Symmetric_Primitives_Base > | create (const DilithiumConstants &mode) |
Protected Member Functions | |
template<concepts::resizable_byte_buffer OutT, ranges::spanable_range... InTs> | |
OutT | H_256 (size_t outbytes, InTs &&... ins) const |
Definition at line 27 of file dilithium_round3_symmetric_primitives.h.
|
staticinherited |
Definition at line 28 of file dilithium_symmetric_primitives.cpp.
References Botan::DilithiumConstants::is_aes(), Botan::DilithiumConstants::is_ml_dsa(), and Botan::DilithiumConstants::is_modern().
Referenced by Botan::DilithiumConstants::DilithiumConstants().
|
delete |
|
inline |
Definition at line 103 of file dilithium_symmetric_primitives.h.
|
delete |
|
inlinevirtualinherited |
Reimplemented in Botan::ML_DSA_Symmetric_Primitives.
Definition at line 118 of file dilithium_symmetric_primitives.h.
|
inlineinherited |
Definition at line 156 of file dilithium_symmetric_primitives.h.
References Botan::XOF::clear(), Botan::Dilithium_Symmetric_Primitives_Base::truncate_commitment_hash(), and Botan::XOF::update().
|
inlineinherited |
Definition at line 151 of file dilithium_symmetric_primitives.h.
References Botan::Dilithium_Symmetric_Primitives_Base::H_256().
|
inlineinherited |
Definition at line 133 of file dilithium_symmetric_primitives.h.
References Botan::XOF::clear(), Botan::XOF::output(), Botan::rho(), Botan::Dilithium_Symmetric_Primitives_Base::seed_expansion_domain_separator(), Botan::DilithiumConstants::SEED_RHO_BYTES, Botan::DilithiumConstants::SEED_RHOPRIME_BYTES, Botan::DilithiumConstants::SEED_SIGNING_KEY_BYTES, and Botan::XOF::update().
|
inlineinherited |
Definition at line 164 of file dilithium_symmetric_primitives.h.
|
inlineinherited |
Definition at line 170 of file dilithium_symmetric_primitives.h.
|
inlineinherited |
Definition at line 129 of file dilithium_symmetric_primitives.h.
References Botan::Dilithium_Symmetric_Primitives_Base::H_256().
Referenced by Botan::Dilithium_Algos::expand_mask(), and Botan::Dilithium_Algos::sample_in_ball().
|
inlineprotectedinherited |
Definition at line 191 of file dilithium_symmetric_primitives.h.
References Botan::XOF::clear(), Botan::XOF::output(), and Botan::XOF::update().
Referenced by Botan::Dilithium_Symmetric_Primitives_Base::H(), and Botan::Dilithium_Symmetric_Primitives_Base::H().
|
inlinefinalvirtual |
Computes the private random seed rho prime used for signing if a rng
is given, the seed is randomized
Implements Botan::Dilithium_Symmetric_Primitives_Base.
Definition at line 38 of file dilithium_round3_symmetric_primitives.h.
References Botan::DilithiumConstants::SEED_RHOPRIME_BYTES.
|
inlinefinalvirtual |
Creates the domain separator for the initial seed expansion. The return value may be std::nullopt meaning that no domain separation is required (for Dilithium).
Implements Botan::Dilithium_Symmetric_Primitives_Base.
Definition at line 55 of file dilithium_round3_symmetric_primitives.h.
|
inlinefinalvirtual |
Implemented by the derived classes to truncate the commitment hash to the correct length. This is a customization point to enable support for the final ML-DSA standard.
Implements Botan::Dilithium_Symmetric_Primitives_Base.
Definition at line 49 of file dilithium_round3_symmetric_primitives.h.
References Botan::DilithiumConstants::COMMITMENT_HASH_C1_BYTES.