Re:Rust Cryptography Should Be Written in Rust
by touisteur on Sunday August 27, 2023 @05:42AM
(#37281003)
Add cache misses, bus interference, SMT woes and it quickly becomes harder and harder to write (and check) constant-time (or WCET) properties. Even modern micro-benchmarks are a huge labyrinth of architectural traps.
Writing truly constant time code on modern processors ranges is difficult at best, and usually less efficient than variable-time code.