Fiat Cryptography: Automated Correct-by-Construction Generation of Efficient Low-Level Cryptographic Code

This work presents Fiat Cryptography, a method for automatically generating low-level cryptographic code that is correct-by-construction. It focuses on optimizing modular big-number arithmetic, which is fundamental to widely used protocols like TLS, ensur

Fiat Cryptography: Automated Correct-by-Construction Generation of Efficient Low-Level Cryptographic Code
Microsoft Research
1.7K views β€’ Jan 16, 2018
Fiat Cryptography: Automated Correct-by-Construction Generation of Efficient Low-Level Cryptographic Code

About this video

Some of the most widely used cryptographic protocols, including TLS, depend on fast execution of modular big-number arithmetic. Cryptographic primitives are coded by an elite set of implementation experts, and most programmers are shocked to learn that performance-competitive implementations are rewritten from scratch for each new prime-number modulus and each significantly different hardware architecture. In the Fiat Cryptography project, we show for the first time that an automatic compiler can produce this modulus-specialized code, via formalized versions of the number-theoretic optimizations that had previously only been applied by hand. Through experiments for a wide range of moduli, compiled for 64-bit x86 and 32-bit ARM processors, we demonstrate typical speedups vs. an off-the-shelf big-integer library in the neighborhood of 5X, sometimes going up to 10X. As a bonus, our compiler is implemented in the Coq proof assistant and generates proofs of functional correctness. These combined benefits of rigorous correctness/security guarantees and labor-saving were enough to convince the Google Chrome team to adopt our compiler for parts of their TLS implementation in the BoringSSL library. The project is joint work with Andres Erbsen, Jade Philipoom, Jason Gross, and Robert Sloan.Β 

See more at https://www.microsoft.com/en-us/research/video/fiat-cryptography-automatic-correct-by-construction-generation-of-low-level-cryptographic-code/

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

1.7K

Likes

21

Duration

01:05:21

Published

Jan 16, 2018

User Reviews

4.3
(1)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

Trending Now