hacspec: Towards verifiable crypto standards

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We present hacspec, a collaborative effort to design a formal specification language for cryptographic primitives. Specifications (specs) written in hacspec are succinct, easy to read and implement, and lend themselves to formal verification using a variety of existing tools. The syntax of hacspec is similar to the pseudocode used in cryptographic standards but is equipped with a static type system and syntax checking tools that can find errors. Specs written in hacspec are executable and can hence be tested against test vectors taken from standards and specified in a common format. Finally, hacspec is designed to be compilable to other formal specification languages like F*, EasyCrypt, Coq, and cryptol, so that it can be used as the basis for formal proofs of functional correctness and cryptographic security using various verification frameworks. This paper presents the syntax, design, and tool architecture of hacspec. We demonstrate the use of the language to specify popular cryptographic algorithms, and describe preliminary compilers from hacspec to F* and to EasyCrypt. Our goal is to invite authors of cryptographic standards to write their pseudocode in hacspec and to help the formal verification community develop the language and tools that are needed to promote high-assurance cryptographic software backed by mathematical proofs.

Original languageEnglish
Title of host publicationSecurity Standardisation Research - 4th International Conference, SSR 2018, Proceedings
EditorsCas Cremers, Anja Lehmann
PublisherSpringer Verlag
Pages1-20
Number of pages20
ISBN (Print)9783030047610
DOIs
Publication statusPublished - 1 Jan 2018
Event4th Conference on Security Standards Research, SSR 2018 - Darmstadt, Germany
Duration: 26 Nov 201827 Nov 2018

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume11322 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference4th Conference on Security Standards Research, SSR 2018
Country/TerritoryGermany
CityDarmstadt
Period26/11/1827/11/18

Fingerprint

Dive into the research topics of 'hacspec: Towards verifiable crypto standards'. Together they form a unique fingerprint.

Cite this