Botan 3.6.1
Crypto and TLS for C&
kyber_algos.cpp File Reference
#include <botan/internal/kyber_algos.h>
#include <botan/internal/kyber_helpers.h>
#include <botan/internal/kyber_keys.h>
#include <botan/internal/loadstor.h>
#include <botan/internal/pqcrystals_encoding.h>
#include <botan/internal/pqcrystals_helpers.h>
#include <utility>

Go to the source code of this file.

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)
 
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)
 
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)