Botan 3.5.0
Crypto and TLS for C&
|
#include <kyber_keys.h>
Public Member Functions | |
const KyberHashedPublicKey & | H_public_key_bits_raw () const |
Ciphertext | indcpa_encrypt (StrongSpan< const KyberMessage > m, StrongSpan< const KyberEncryptionRandomness > r) const |
Kyber_PublicKeyInternal ()=delete | |
Kyber_PublicKeyInternal (const KyberConstants &mode, std::span< const uint8_t > polynomials, KyberSeedRho seed) | |
Kyber_PublicKeyInternal (KyberConstants mode, PolynomialVector polynomials, KyberSeedRho seed) | |
const KyberConstants & | mode () const |
const KyberSerializedPublicKey & | public_key_bits_raw () const |
const KyberSeedRho & | rho () const |
const PolynomialVector & | t () const |
Definition at line 21 of file kyber_keys.h.
Botan::Kyber_PublicKeyInternal::Kyber_PublicKeyInternal | ( | KyberConstants | mode, |
PolynomialVector | polynomials, | ||
KyberSeedRho | seed ) |
Definition at line 19 of file kyber_keys.cpp.
|
inline |
Definition at line 25 of file kyber_keys.h.
|
delete |
|
inline |
Definition at line 38 of file kyber_keys.h.
Ciphertext Botan::Kyber_PublicKeyInternal::indcpa_encrypt | ( | StrongSpan< const KyberMessage > | m, |
StrongSpan< const KyberEncryptionRandomness > | r ) const |
NIST FIPS 203 IPD, Algorithm 13 (K-PKE.Encrypt)
Definition at line 29 of file kyber_keys.cpp.
References Botan::Polynomial::from_message(), Botan::PolynomialMatrix::generate(), Botan::PolynomialVector::getnoise_eta1(), Botan::Polynomial::getnoise_eta2(), Botan::PolynomialVector::getnoise_eta2(), Botan::KyberConstants::k(), and Botan::PolynomialVector::pointwise_acc_montgomery().
|
inline |
Definition at line 34 of file kyber_keys.h.
|
inline |
Definition at line 36 of file kyber_keys.h.
|
inline |
Definition at line 32 of file kyber_keys.h.
|
inline |
Definition at line 30 of file kyber_keys.h.