Verification of Correctness and Security Properties for CRYSTALS-KYBER
Formalizes CRYSTALS-KYBER's PKE spec and parameters in Isabelle, verifying correctness and IND-CPA; finds gaps and an error-bound discrepancy.
Schemes: CRYSTALS-KYBER
Findings (quotes checked against the source text)
-
Formalizing Kyber's correctness in Isabelle uncovered gaps in the pen-and-paper proofs, with all but one gap concerning the error bound delta being filled.
All but one gap concerning the error bound $\delta$ could be filled.
-
In smaller dimensions the original error bound delta is less than the actual error term, which violates the correctness property.
Calculations in smaller dimensions give examples where the bound $\delta$ is less than the actual error term, violating the correctness property.
-
Correctness was formalized up to an application of the module-LWE assumption, so the discrepancy with the original bound is believed small and correctness holds up to a minimal change to the error bound.
Thus the correctness could be formalized up to a minimal change to the error bound.
For builders
Use formally checked parameter and error-bound statements for Kyber-style KEMs rather than trusting the original pen-and-paper correctness bound.
Limits
Abstract-only source; the full text was not read. Only a PKE scheme is covered, not the KEM or signatures, and the error-bound fix is described only qualitatively.