TY - GEN
T1 - Faster Verification of Faster Implementations
T2 - 46th IEEE Symposium on Security and Privacy, SP 2025
AU - Almeida, José Bacelar
AU - Delerue Marinho Alves, Gustavo Xavier
AU - Barbosa, Manuel
AU - Barthe, Gilles
AU - Esquível, Luís
AU - Hwang, Vincent
AU - Oliveira, Tiago
AU - Pacheco, Hugo
AU - Schwabe, Peter
AU - Strub, Pierre Yves
N1 - Publisher Copyright:
© 2025 IEEE.
PY - 2025/1/1
Y1 - 2025/1/1
N2 - We propose a hybrid formal verification approach that combines high-level deductive reasoning and circuit-based reasoning and apply it to highly optimized cryptographic assembly code. Our approach permits scaling up formal verification in two complementary directions: 1) it reduces the proof effort required for low-level functions where the computation logics are obfuscated by the intricate use of architecture-specific instructions and 2) it permits amortizing the effort of proving one implementation by using equivalence checking to propagate the guarantees to other implementations of the same computation using different optimizations or targeting different architectures. We demonstrate our approach via an extension to the EasyCrypt proof assistant and by revisiting formally verified implementations of ML-KEM in Jasmin. As a result, we obtain the first formally verified implementation of ML-KEM that offers performance comparable to the fastest non-verified implementation in x86-64 architectures.
AB - We propose a hybrid formal verification approach that combines high-level deductive reasoning and circuit-based reasoning and apply it to highly optimized cryptographic assembly code. Our approach permits scaling up formal verification in two complementary directions: 1) it reduces the proof effort required for low-level functions where the computation logics are obfuscated by the intricate use of architecture-specific instructions and 2) it permits amortizing the effort of proving one implementation by using equivalence checking to propagate the guarantees to other implementations of the same computation using different optimizations or targeting different architectures. We demonstrate our approach via an extension to the EasyCrypt proof assistant and by revisiting formally verified implementations of ML-KEM in Jasmin. As a result, we obtain the first formally verified implementation of ML-KEM that offers performance comparable to the fastest non-verified implementation in x86-64 architectures.
KW - easycrypt
KW - formal verification
KW - functional correctness
KW - post-quantum cryptography
UR - https://www.scopus.com/pages/publications/105009319071
U2 - 10.1109/SP61157.2025.00214
DO - 10.1109/SP61157.2025.00214
M3 - Conference contribution
AN - SCOPUS:105009319071
T3 - Proceedings - IEEE Symposium on Security and Privacy
SP - 3820
EP - 3838
BT - Proceedings - 46th IEEE Symposium on Security and Privacy, SP 2025
A2 - Blanton, Marina
A2 - Enck, William
A2 - Nita-Rotaru, Cristina
PB - Institute of Electrical and Electronics Engineers Inc.
Y2 - 12 May 2025 through 15 May 2025
ER -