Botan 3.6.1
Crypto and TLS for C&
|
#include <kyber_algos.h>
Public Member Functions | |
PolynomialSampler (StrongSpan< const SeedT > seed, const KyberConstants &mode) | |
KyberPoly | sample_polynomial_cbd_eta2 () |
KyberPolyVec | sample_polynomial_vector_cbd_eta1 () |
KyberPolyVec | sample_polynomial_vector_cbd_eta2 () |
Allows sampling multiple polynomials from a single seed via a XOF.
Used in Algorithms 13 (K-PKE.KeyGen) and 14 (K-PKE.Encrypt), and takes care of the continuous nonce value internally.
Definition at line 65 of file kyber_algos.h.
|
inline |
Definition at line 67 of file kyber_algos.h.
|
inline |
Definition at line 78 of file kyber_algos.h.
References Botan::KyberConstants::eta2().
Referenced by Botan::Kyber_PublicKeyInternal::indcpa_encrypt().
|
inline |
Definition at line 70 of file kyber_algos.h.
References Botan::KyberConstants::eta1(), and Botan::KyberConstants::k().
Referenced by Botan::Kyber_Algos::expand_keypair(), and Botan::Kyber_PublicKeyInternal::indcpa_encrypt().
|
inline |
Definition at line 86 of file kyber_algos.h.
References Botan::KyberConstants::eta2(), and Botan::KyberConstants::k().
Referenced by Botan::Kyber_PublicKeyInternal::indcpa_encrypt().