Fast, Constant-Time, Correct: Pick Three
summary
Shows a concrete class of risky C patterns where a compiler converts bit extract into branch, turning constant-time code variable depending on compiler, flags and platform, with examples from libcrux and Kyber timing leaks and real GCC/Clang optimizer bugs. Contrasts that with an assembly-first library s2n-bignum that ships verified x25519/x25519-like routines, machine-checked proofs tied to the exact object code and proof checking via HOL Light, trading portability for speed and strong correctness guarantees.
AI-written summary · about
chapters (14)
- 0:00Introduction and motivation
- 1:14Proactive vs reactive security
- 3:44Dangerous compiler optimizations
- 6:53Constant-time coding challenges
- 9:20Compiler and cryptographic bugs
- 13:12Post-apocalyptic cryptographic nightmare
- 13:35Introducing S2N BigNum
- 17:56CPU timing guarantees
- 20:28Correctness via formal proofs
- 26:23Auditing S2N BigNum
- 34:30Auditing a theorem statement
- 37:21Impact on cryptographic ecosystem
- 38:44Verification in cryptography today
- 40:08Q&A on verified crypto
