Files
tfhe-rs/apps/test-vectors
Thomas Montaigu 748dac511c fix(csprng)!: start from TableIndex::FIRST and not SECOND
Now that the csprng can start from FIRST, we make it
start from FIRST.

Other changes are:
1) Using std::ops::Bound as the type of the bound/end in AesCtrGenerator
and State makes it more explicit for the caller what bound it uses
(Excluded, Included, Unbounded).

2) add proper overflow check in skip_bytes/check_fork

Without these overflow checks the state would wrap, it could lead to
misuses

This means by default data generated from previous versions
is not compatible with newer versions unless explicitely constructed
with the correct AesCtrParams (starting at SECOND).

This is fine for compressed data generated by tfhe-rs thanks
to the versionning system.

The test-vectors had to be regenerated as they did change
Backward data for xof has also been regenerated, as its was only added
in main branch (not release) thus data is considered not stable yet
Added a full server key to the backward data that uses this new generator
2026-03-10 10:43:34 +01:00
..
2025-12-03 17:44:46 +01:00

Test vectors for TFHE

This folder contains test vectors for the core TFHE-rs algorithms.

The test vectors are located in data, and are generated using the sample program in src/main.rs.

To re-generate the test vectors, assuming you have rustup installed on your system, simply run the following command in the current folder:

cargo run --release

See the data folder for more information about the generated values.