Lune

POPL2022顶会

Certifying derivation of state machines from coroutines

Mirai Ikebuchi, Andres Erbsen, Adam Chlipala

摘要

One of the biggest implementation challenges in security-critical network protocols is nested state machines. In practice today, state machines are either implemented manually at a low level, risking bugs easily missed in audits; or are written using higher-level abstractions like threads, depending on runtime systems that may sacrifice performance or compatibility with the ABIs of important platforms (e.g., resource-constrained IoT systems). We present a compiler-based technique allowing the best of both worlds, coding protocols in a natural high-level form, using freer monads to represent nested coroutines , which are then compiled automatically to lower-level code with explicit state. In fact, our compiler is implemented as a tactic in the Coq proof assistant, structuring compilation as search for an equivalence proof for source and target programs. As such, it is straightforwardly (and soundly) extensible with new hints, for instance regarding new data structures that may be used for efficient lookup of coroutines. As a case study, we implemented a core of TLS sufficient for use with popular Web browsers, and our experiments show that the extracted Haskell code achieves reasonable performance.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 Verified Correctness and Security of mbedTLS HMAC-DRBG
  • EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
  • Foundational Integration Verification of a Cryptographic Server 引用了 Verified Correctness and Security of mbedTLS HMAC-DRBG
  • Foundational Integration Verification of a Cryptographic Server 引用了 EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
  • Foundational Integration Verification of a Cryptographic Server 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
  • OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries 引用了 EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
  • OwlC: Compiling Security Protocols to Verified, Secure, High-Performance Libraries 引用了 Interaction trees: representing recursive and impure programs in Coq
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Foundational Integration Verification of a Cryptographic ServerAndres Erbsen, Jade Philipoom, Dustin Jamner, Ashley Lin 等PLDI 2024 · 8 次引用
  2. OwlC: Compiling Security Protocols to Verified, Secure, High-Performance LibrariesPratap Singh, Joshua Gancher, Bryan ParnoUSENIX Security 2025

它引用的 Paper5

  1. Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without CompromisesAndres Erbsen, Jade Philipoom, Jason Gross, Robert Sloan 等S&P 2019 · 147 次引用
  2. Interaction trees: representing recursive and impure programs in CoqLi-yao Xia, Yannick Zakowski, Paul He, Chung-Kil Hur 等POPL 2020 · 133 次引用
  3. EverCrypt: A Fast, Verified, Cross-Platform Cryptographic ProviderJonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel 等S&P 2020 · 114 次引用
  4. Verified Correctness and Security of mbedTLS HMAC-DRBGKatherine Q. Ye, Matthew Green, Naphat Sanguansin, Lennart Beringer 等CCS 2017 · 59 次引用
  5. Perceus: garbage free reference counting with reuseAlex Reinking, Ningning Xie, Leonardo de Moura, Daan LeijenPLDI 2021 · 31 次引用

相关 Paper

  1. Noise*: A Library of Verified High-Performance Secure Channel Protocol ImplementationsSon Ho, Jonathan Protzenko, Abhishek Bichhawat, Karthikeyan BhargavanS&P 2022 · 22 次引用
  2. CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic PrimitivesJoel Kuepper, Andres Erbsen, Jason Gross, Owen Conoly 等PLDI 2023 · 12 次引用
  3. Formal Security and Functional Verification of Cryptographic Protocol Implementations in RustKarthikeyan Bhargavan, Lasse Letager Hansen, Franziskus Kiefer, Jonas Schneider-Bensch 等CCS 2025 · 1 次引用
  4. Formally Verified Native Code Generation in an Effectful JIT: Turning the CompCert Backend into a Formally Verified JIT CompilerAurèle Barrière, Sandrine Blazy, David PichardiePOPL 2023 · 27 次引用
  5. Hyperblock Scheduling for Verified High-Level SynthesisYann Herklotz, John WickersonPLDI 2024 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖