feat(csprng): add Xof random generation

This adds a new kind of seed to the csprng

When created which such seed, the AES-CTR random generator
initialization changes:
- The AES-KEY used is initialized differently
- The AES-CTR starts with a CTR that may not be 0

The changes make it so that the counter still goes from 0..MAX,
but now the AES-CTR will encrypt the counter + some offset allowing
to keep the regular behavior and the new one
This commit is contained in:
tmontaigu
2025-06-02 17:03:51 +02:00
parent c0e89a53ef
commit aca7e79585
17 changed files with 315 additions and 24 deletions

View File

@@ -174,8 +174,8 @@ install_zizmor: install_rs_build_toolchain
( echo "Unable to install zizmor, unknown error." && exit 1 )
.PHONY: install_cargo_cross # Install custom tfhe-rs lints
install_cargo_cross:
cargo install cross
install_cargo_cross: install_rs_build_toolchain
cargo $(CARGO_RS_BUILD_TOOLCHAIN) install cross
.PHONY: setup_venv # Setup Python virtualenv for wasm tests
setup_venv: