Botan 3.6.1
Crypto and TLS for C&
kyber_algos.h File Reference

Internal Header. More...

#include <botan/xof.h>
#include <botan/internal/fmt.h>
#include <botan/internal/kyber_symmetric_primitives.h>
#include <botan/internal/kyber_types.h>
#include <botan/internal/loadstor.h>

Go to the source code of this file.

Classes

class  Botan::Kyber_Algos::PolynomialSampler< SeedT >
 

Namespaces

namespace  Botan
 
namespace  Botan::Kyber_Algos
 

Functions

void Botan::Kyber_Algos::compress_ciphertext (StrongSpan< KyberCompressedCiphertext > out, const KyberPolyVec &u, const KyberPoly &v, const KyberConstants &m_mode)
 
KyberPolyVecNTT Botan::Kyber_Algos::decode_polynomial_vector (std::span< const uint8_t > a, const KyberConstants &mode)
 
std::pair< KyberPolyVec, KyberPolyBotan::Kyber_Algos::decompress_ciphertext (StrongSpan< const KyberCompressedCiphertext > ct, const KyberConstants &mode)
 
template<concepts::resizable_byte_buffer T = secure_vector<uint8_t>>
T Botan::Kyber_Algos::encode_polynomial_vector (const KyberPolyVecNTT &vec, const KyberConstants &mode)
 
void Botan::Kyber_Algos::encode_polynomial_vector (std::span< uint8_t > out, const KyberPolyVecNTT &vec)
 
KyberInternalKeypair Botan::Kyber_Algos::expand_keypair (KyberPrivateKeySeed seed, KyberConstants mode)
 
KyberPoly Botan::Kyber_Algos::polynomial_from_message (StrongSpan< const KyberMessage > msg)
 
KyberMessage Botan::Kyber_Algos::polynomial_to_message (const KyberPoly &p)
 
template<typename T >
 Botan::Kyber_Algos::PolynomialSampler (T, const KyberConstants &) -> PolynomialSampler< T >
 
KyberPolyMat Botan::Kyber_Algos::sample_matrix (StrongSpan< const KyberSeedRho > seed, bool transposed, const KyberConstants &mode)
 
void Botan::Kyber_Algos::sample_polynomial_from_cbd (KyberPoly &poly, KyberConstants::KyberEta eta, const KyberSamplingRandomness &randomness)
 

Detailed Description

Internal Header.

Definition in file kyber_algos.h.