TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Synthesizing Correct-by-Construction Code for Cryptographic Primitives

78 pointsby johloover 4 years ago

2 comments

jeyover 4 years ago
Here&#x27;s the abstract from their paper:<p><pre><code> We introduce a new approach for implementing cryptographic arithmetic in short high-level code with machine checked proofs of functional correctness. We further demonstrate that simple partial evaluation is sufficient to transform such initial code into the fastest-known C code, breaking the decades old pattern that the only fast implementations are those whose instruction-level steps were written out by hand. These techniques were used to build an elliptic-curve library that achieves competitive performance for 80 prime fields and multiple CPU architectures, showing that implementation and proof effort scales with the number and complexity of conceptually different algorithms, not their use cases. As one outcome, we present the first verified high-performance implementation of P-256, the most widely used elliptic curve. Implementations from our library were included in BoringSSL to replace existing specialized code, for inclusion in several large deployments for Chrome, Android, and CloudFlare.</code></pre>
johloover 4 years ago
A list of projects using the code generated by fiat-crypto: <a href="https:&#x2F;&#x2F;github.com&#x2F;mit-plv&#x2F;fiat-crypto&#x2F;issues&#x2F;902" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mit-plv&#x2F;fiat-crypto&#x2F;issues&#x2F;902</a>