2017 · 48 citations · 22 references
ComputingComputer ScienceCompilersCryptographyProgramming LanguagesCode-based CryptographyCompiler ConstructionControl-flow AnalysisCryptographic ImplementationConstant-time ImplementationConstant-time ProgrammingDomain-specific Language DesignDomain-specific Language EngineeringMachine Code GenerationTiming Attack MitigationTiming Side-channel Analysis
We argue that C is unsuitable for writing timing-channel free cryptographic code that is both fast and readable. Readable implementations of crypto routines would contain highlevel constructs like if statements, constructs that also introduce timing vulnerabilities. To avoid vulnerabilities, programmers must rewrite their code to dodge intuitive yet dangerous constructs, cluttering the code-base and potentially introducing new errors. Moreover, even when programmers are diligent, compiler optimization passes may still introduce branches and other sources of timing side channels. This status quo is the worst of both worlds: tortured source code that can still yield vulnerable machine code. We propose to solve this problem with a domain-specific language that permits programmers to intuitively express crypto routines and reason about secret values, and a compiler that generates efficient, timing-channel free assembly code.
22
Translation validation for an optimizing compiler
George C. Necula · 2000 · 487 citations
Dependent types and multi-monadic effects in F*
Nikhil Swamy, Cătălin Hriţcu, Chantal Keller et al. · 2016 · 292 citations · Full text
On the power of simple branch prediction analysis
Onur Acıiçmez, Çetin Kaya Koç, Jean‐Pierre Seifert · 2007 · 258 citations