params library

Constants

KYBER_CIPHERTEXTBYTES → const int
KYBER_DU → const int
Compression bit-lengths used in the encoding of u and v in the ciphertext. For this implementation, a full polynomial is encoded using 12 bits per coefficient, and the compressed polynomial uses 3 bits per coefficient.
KYBER_DV → const int
KYBER_ETA → const int
Noise parameter η.
KYBER_F → const int
Final scaling factor in Montgomery domain (represents 1/256).
KYBER_INDCPA_BYTES → const int
KYBER_INDCPA_PUBLICKEYBYTES → const int
Specific sizes for the internal IND-CPA KEM. The IND-CPA public key is formed by concatenating a compressed polyvec and a seed.
KYBER_INDCPA_SECRETKEYBYTES → const int
KYBER_K → const int
Number of polynomials in the key vector.
KYBER_N → const int
Degree of each polynomial.
KYBER_POLYBYTES → const int
Sizes related to polynomials. A full polynomial is represented in 384 bytes using 12-bit encoding per coefficient. (256 coefficients × 12 bits = 3072 bits; 3072 / 8 = 384 bytes)
KYBER_POLYCOMPRESSEDBYTES → const int
A compressed polynomial is represented in 96 bytes when compressing each coefficient to 3 bits (256 coefficients × 3 bits = 768 bits; 768 / 8 = 96 bytes).
KYBER_POLYVECBYTES → const int
Derived sizes:
KYBER_POLYVECCOMPRESSEDBYTES → const int
KYBER_PUBLICKEYBYTES → const int
Sizes of keys and ciphertexts.
KYBER_Q → const int
Modulus q.
KYBER_QINV → const int
Inverse of q modulo 2^16.
KYBER_SECRETKEYBYTES → const int
KYBER_SSBYTES → const int
KYBER_SYMBYTES → const int
Size in bytes of seeds and symmetric keys.