计算机科学 > 计算机科学中的逻辑
[提交于 2025年5月20日]
标题:Relational Hoare Logic for Realistically Modelled Machine Code
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Many security- and performance-critical domains, such as cryptography, rely on low-level verification to minimize the trusted computing surface and allow code to be written directly in assembly. However, verifying assembly code against a realistic machine model is a challenging task. Furthermore, certain security properties -- such as constant-time behavior -- require relational reasoning that goes beyond traditional correctness by linking multiple execution traces within a single specification. Yet, relational verification has been extensively explored at a higher level of abstraction. In this work, we introduce a Hoare-style logic that provides low-level, expressive relational verification. We demonstrate our approach on the s2n-bignum library, proving both constant-time discipline and equivalence between optimized and verification-friendly routines. Formalized in HOL Light, our results confirm the real-world applicability of relational verification in large assembly codebases.
提交历史
来自:Denis Mazzucato[v1] 2025年5月20日 星期二 13:29:47 UTC