Botan 3.6.1
Crypto and TLS for C&
dilithium_algos.cpp File Reference
#include <botan/internal/dilithium_algos.h>
#include <botan/internal/bit_ops.h>
#include <botan/internal/ct_utils.h>
#include <botan/internal/dilithium_keys.h>
#include <botan/internal/dilithium_symmetric_primitives.h>
#include <botan/internal/fmt.h>
#include <botan/internal/loadstor.h>
#include <botan/internal/pqcrystals_encoding.h>
#include <botan/internal/pqcrystals_helpers.h>
#include <botan/internal/stl_util.h>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  Botan
 
namespace  Botan::Dilithium_Algos
 

Functions

std::pair< DilithiumSeedRho, DilithiumPolyVecBotan::Dilithium_Algos::decode_public_key (StrongSpan< const DilithiumSerializedPublicKey > pk, const DilithiumConstants &mode)
 
std::optional< std::tuple< DilithiumCommitmentHash, DilithiumPolyVec, DilithiumPolyVec > > Botan::Dilithium_Algos::decode_signature (StrongSpan< const DilithiumSerializedSignature > sig, const DilithiumConstants &mode)
 
std::pair< DilithiumPolyVec, DilithiumPolyVecBotan::Dilithium_Algos::decompose (const DilithiumPolyVec &vec, const DilithiumConstants &mode)
 
DilithiumSerializedCommitment Botan::Dilithium_Algos::encode_commitment (const DilithiumPolyVec &w1, const DilithiumConstants &mode)
 
DilithiumSerializedPublicKey Botan::Dilithium_Algos::encode_public_key (StrongSpan< const DilithiumSeedRho > rho, const DilithiumPolyVec &t1, const DilithiumConstants &mode)
 
DilithiumSerializedSignature Botan::Dilithium_Algos::encode_signature (StrongSpan< const DilithiumCommitmentHash > c, const DilithiumPolyVec &response, const DilithiumPolyVec &hint, const DilithiumConstants &mode)
 
DilithiumPolyMatNTT Botan::Dilithium_Algos::expand_A (StrongSpan< const DilithiumSeedRho > rho, const DilithiumConstants &mode)
 
DilithiumInternalKeypair Botan::Dilithium_Algos::expand_keypair (DilithiumSeedRandomness xi, DilithiumConstants mode)
 
DilithiumPolyVec Botan::Dilithium_Algos::expand_mask (StrongSpan< const DilithiumSeedRhoPrime > rhoprime, uint16_t nonce, const DilithiumConstants &mode)
 
std::pair< DilithiumPolyVec, DilithiumPolyVecBotan::Dilithium_Algos::expand_s (StrongSpan< const DilithiumSeedRhoPrime > rhoprime, const DilithiumConstants &mode)
 
bool Botan::Dilithium_Algos::infinity_norm_within_bound (const DilithiumPolyVec &vec, size_t bound)
 
DilithiumPolyVec Botan::Dilithium_Algos::make_hint (const DilithiumPolyVec &z, const DilithiumPolyVec &r, const DilithiumConstants &mode)
 
std::pair< DilithiumPolyVec, DilithiumPolyVecBotan::Dilithium_Algos::power2round (const DilithiumPolyVec &vec)
 
DilithiumPoly Botan::Dilithium_Algos::sample_in_ball (StrongSpan< const DilithiumCommitmentHash > seed, const DilithiumConstants &mode)
 
void Botan::Dilithium_Algos::use_hint (DilithiumPolyVec &vec, const DilithiumPolyVec &hints, const DilithiumConstants &mode)