Botan 3.6.1
Crypto and TLS for C&
|
#include <kyber_keys.h>
Public Member Functions | |
void | _const_time_poison () const |
void | _const_time_unpoison () const |
KyberMessage | indcpa_decrypt (StrongSpan< const KyberCompressedCiphertext > ct) const |
Kyber_PrivateKeyInternal ()=delete | |
Kyber_PrivateKeyInternal (KyberConstants mode, KyberPolyVecNTT s, KyberPrivateKeySeed seed) | |
const KyberConstants & | mode () const |
KyberPolyVecNTT & | s () |
const KyberPolyVecNTT & | s () const |
const KyberPrivateKeySeed & | seed () const |
const KyberImplicitRejectionValue & | z () const |
Definition at line 67 of file kyber_keys.h.
|
inline |
Definition at line 69 of file kyber_keys.h.
|
delete |
|
inline |
Definition at line 86 of file kyber_keys.h.
References Botan::KyberPrivateKeySeed::d, Botan::CT::poison_all(), and Botan::KyberPrivateKeySeed::z.
|
inline |
Definition at line 88 of file kyber_keys.h.
References Botan::KyberPrivateKeySeed::d, Botan::CT::unpoison_all(), and Botan::KyberPrivateKeySeed::z.
KyberMessage Botan::Kyber_PrivateKeyInternal::indcpa_decrypt | ( | StrongSpan< const KyberCompressedCiphertext > | ct | ) | const |
NIST FIPS 203, Algorithm 15 (K-PKE.Decrypt)
s^T is already decoded and available as a member variable. This allows to reuse the structure for multiple decryptions.
Definition at line 84 of file kyber_keys.cpp.
References Botan::Kyber_Algos::decompress_ciphertext(), and Botan::Kyber_Algos::polynomial_to_message().
|
inline |
Definition at line 82 of file kyber_keys.h.
|
inline |
Definition at line 74 of file kyber_keys.h.
|
inline |
Definition at line 76 of file kyber_keys.h.
|
inline |
Definition at line 78 of file kyber_keys.h.
|
inline |