Name Description Size
info.txt 447
kyber.cpp 11950
kyber.h Create a new private key. The private key will be encoded as the 64 byte seed. 7545
kyber_algos.cpp NIST FIPS 203, Algorithm 5 (ByteEncode) for d < 12 in combination with Formula 4.7 (Compress) 13128
kyber_algos.h 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. 4216
kyber_constants.cpp 2885
kyber_constants.h XOF bytes per while iteration 4491
kyber_encaps_base.h transposed 3254
kyber_helpers.h Special load_le<> that takes 3 bytes and returns a 32-bit integer. 2461
kyber_keys.cpp Key decoding as specified in Crystals Kyber (Version 3.01), Algorithms 4 (CPAPKE.KeyGen()), and 7 (CCAKEM.KeyGen()) Public Key: pk := (encode(t) || rho) Secret Key: sk' := encode(s) Expanded Secret Key: sk := (sk' || pk || H(pk) || z) 6909
kyber_keys.h 4080
kyber_polynomial.h NIST FIPS 203, Algorithm 9 (NTT) Produces the result of the NTT transformation without any montgomery factors in the coefficients. Zetas are pre-computed and stored in the zetas array. The zeta values contain the montgomery factor 2^16 mod q. 4806
kyber_symmetric_primitives.h Adapter class that uses polymorphy to distinguish Kyber "modern" from Kyber "90s" modes. 4485
kyber_types.h 3578