AI for Code-based Cryptography
Mohamed Malhou
PhD student @ Sorbonne Université & FAIR & EPITA
Co-supervised by Kristin Lauter, François Charton, Ludovic Perret
CBCrypto 2025
May 3rd
Cryptography in the post-quantum era
Category | Primary Algorithm | Alternate Algorithms |
Public-Key Encryption/KEMs | CRYSTALS-Kyber | HQC |
Digital Signatures | CRYSTALS-Dilithium | FALCON, SPHINCS+ |
Fourth Round KEM Finalists (2022-2025)
Classic McEliece
plaintext
Decode
ciphertext
Bob's Public Key
Bob's Private Key
Bob
Alice
Binary Irreducible Goppa Codes
Where
Security analysis of McEliece
Linear Codes
Goppa Codes
G
Some Distinguishers in the Literature
J.-C. Faugère, V. Gauthier-Umana, A. Otmani, L. Perret, J.-P. Tillich.
A Distinguisher for High Rate McEliece Cryptosystems.
IEEE-IT 2013
A. Couvreur, R. Mora, J.-P. Tillich.
A New Approach Based on Quadratic Forms to Attack the McEliece Cryptosystem.
Asiacrypt 2023.
H. Randriambololona.
The Syzygy Distinguisher.
EUROCRYPT 2025.
Approach: Classification task using a Transformer
g8
g1
g2
g3
g4
g5
g6
g7
Goppa
Random
Evaluation of the distinguishers in the literature
[Randriam 24 & CMT 23]
Results:
Can we do better than just distinguish ?
Training on a new task: Goppa Code Completion
1
1
1
0
1
0
1
0
0
1
0
1
0
0
0
0
1
1
1
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
0
1
0
1
0
0
0
0
1
0
1
1
0
0
1
0
1
0
1
1
1
0
1
0
1
0
0
1
0
1
0
0
0
0
0
1
1
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
1
1
0
0
0
0
0
1
1
1
1
0
0
0
0
1
0
1
0
1
0
0
0
0
1
0
1
1
0
0
1
0
1
0
1
Test Accuracy on n=64, m=6
Summary and Conclusion
Paper: Mohamed Malhou, Ludovic Perret, Kristin Lauter
AI for Code-based Cryptography