ZeroTierOne/third_party/kyber/tests/rand_bufs
2022-07-13 20:12:32 -04:00
..
outputs More session work, cleanup, AES in core crypto, and vendor the kyber library so we can remove no_std. 2022-07-13 20:12:32 -04:00
generate_bufs.c More session work, cleanup, AES in core crypto, and vendor the kyber library so we can remove no_std. 2022-07-13 20:12:32 -04:00
Makefile More session work, cleanup, AES in core crypto, and vendor the kyber library so we can remove no_std. 2022-07-13 20:12:32 -04:00
readme.md More session work, cleanup, AES in core crypto, and vendor the kyber library so we can remove no_std. 2022-07-13 20:12:32 -04:00
rng.c More session work, cleanup, AES in core crypto, and vendor the kyber library so we can remove no_std. 2022-07-13 20:12:32 -04:00
rng.h More session work, cleanup, AES in core crypto, and vendor the kyber library so we can remove no_std. 2022-07-13 20:12:32 -04:00

Randbuf Generation

This program generates the deterministic rng output used in the intermediate stages of keypair generation and encoding from KAT seed values.

rng.c and rng.h are directly from the NIST submission, generate_bufs.c is a stripped down version of PQCgenKAT_kem.c to print out the seeded values from randombytes() into their respective files.

These values are then used in place of regular rng output when running the KATs.

Usage

To build and use:

cd tests/rand_bufs
make
./generate
mkdir outputs
mv crypto_kem_keypair indcpa_keypair encode outputs/

Original Files