用于形式化验证的认证数据结构的逻辑关系
Logical Relations for Formally Verified Authenticated Data Structures
AI总结:
本文提出基于新型关系分离逻辑的形式化证明方法,为可自动生成认证数据结构的库验证安全性与正确性,证明了库优化的正确性及手写实现与自动生成代码的可靠链接,结果已在Coq中通过Iris框架机械化验证。
摘要:
认证数据结构(Authenticated Data Structures)允许不可信第三方执行操作,并生成可用于验证操作输出的证明。这类数据结构的正确开发与实现颇具挑战性。本文为一个可自动生成数据结构认证版本的库,给出了安全性与正确性的形式化证明。该证明基于一种新型关系分离逻辑,用于对使用抗碰撞密码哈希函数的程序进行推理。该逻辑为构建某类型系统的两个语义模型提供了基础,这两个模型用于论证该库如何利用类型抽象来保障安全性与正确性。借助这些模型,我们还证明了对该库的若干优化的正确性,随后说明了经过优化的手写认证数据结构实现如何能够与自动生成的代码可靠链接。本文所有结果均已通过Iris框架在Coq证明助手中实现了机械化验证。
英文摘要:
Authenticated data structures allow untrusted third parties to carry out operations which produce proofs that can be used to verify an operation's output. Such data structures are challenging to develop and implement correctly. This paper gives a formal proof of security and correctness for a library that generates authenticated versions of data structures automatically. The proof is based on a new relational separation logic for reasoning about programs that use collision-resistant cryptographic hash functions. This logic provides a basis for constructing two semantic models of a type system, which are used to justify how the library makes use of type abstraction to enforce security and correctness. Using these models, we also prove the correctness of several optimizations to the library and then show how optimized, hand-written implementations of authenticated data structures can be soundly linked with automatically generated code. All of the results in this paper have been mechanized in the Coq proof assistant using the Iris framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。