libcrux
libcrux copied to clipboard
Make ML-KEM serialize.rs panic-free
This patch adds pre-conditions and workaround assumptions to serialize.rs to make Libcrux_ml_kem.Serialize.fst verifiable. It also adds Libcrux_ml_kem.Serialize.fst to PANIC_FREE category in ML-KEM Makefile.
I turn this PR to draft until we get rid of all the assumes. The next PRs will focus on Vector modules as it seems to be less affected by issues that require inline assumptions.
@mamonet What's the state here? This looks stale. Do you want to close it?
The changes are still relative. However, this PR depends on https://github.com/hacspec/hax/issues/605 to remove assumes.
I will close this PR because it's now part of https://github.com/cryspen/libcrux/pull/488