{
  "id": "2017/536",
  "url": "https://opencryptology.org/2017/536",
  "original_url": "https://eprint.iacr.org/2017/536",
  "title": "HACL*: A Verified Modern Cryptographic Library",
  "authors": [
    "Jean Karim Zinzindohoué",
    "Karthikeyan Bhargavan",
    "Jonathan Protzenko",
    "Benjamin Beurdouche"
  ],
  "affiliations": null,
  "abstract": "HACL* is a verified portable C cryptographic library that implements modern cryptographic primitives such as the ChaCha20 and Salsa20 encryption algorithms, Poly1305 and HMAC message authentication, SHA-256 and SHA-512 hash functions, the Curve25519 elliptic curve, and Ed25519 signatures.\n\nHACL* is written in the F* programming language and then compiled to readable C code. The F* source code for each crypto- graphic primitive is verified for memory safety, mitigations against timing side-channels, and functional correctness with respect to a succinct high-level specification of the primitive derived from its published standard. The translation from F* to C preserves these properties and the generated C code can itself be compiled via the CompCert verified C compiler or mainstream compilers like GCC or CLANG. When compiled with GCC on 64-bit platforms, our primitives are as fast as the fastest pure C implementations in OpenSSL and Libsodium, significantly faster than the reference C code in TweetNaCl, and between 1.1x-5.7x slower than the fastest hand-optimized vectorized assembly code in SUPERCOP.\n\nHACL* implements the NaCl cryptographic API and can be used as a drop-in replacement for NaCl libraries like Libsodium and TweetNaCl. HACL&#8727; provides the cryptographic components for a new mandatory ciphersuite in TLS 1.3 and is being developed as the main cryptographic provider for the miTLS verified implementation. Primitives from HACL* are also being integrated within Mozilla’s NSS cryptographic library. Our results show that writing fast, verified, and usable C cryptographic libraries is now practical.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“HACL*: A Verified Modern Cryptographic Library” by Jean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin Beurdouche, Cryptology ePrint Archive, Paper 2017/536, https://eprint.iacr.org/2017/536. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2017-06-08T15:50:11Z",
    "updated": "2017-09-01T20:02:09Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2017/536.pdf",
    "sha256": "2c8e0345089d700452b5edfde90af5143fb19633621821916d7ebf0218b47639",
    "size": 977616,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:41:11Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2017/536/versions/20190225T174111Z.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/536.pdf",
      "size": 977616,
      "sha256": "2c8e0345089d700452b5edfde90af5143fb19633621821916d7ebf0218b47639",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2017/536/versions/20170709T234458Z.pdf",
      "captured_at": "2017-07-09T23:44:58Z",
      "label": "copy captured 2017-07-09",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20170709234458id_/http://eprint.iacr.org/2017/536.pdf",
      "size": 642383,
      "sha256": "9a5b868548750aa2341e9d31f57ecca0e70c03eb4ef3431efbc6843a6f19c065",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260923044844id_/https://eprint.iacr.org/2017/536.pdf",
      "captured_at": "2026-09-23T04:48:44Z",
      "size": 972607
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/536.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "size": 977616
    }
  ],
  "bibtex": "@misc{cryptoeprint:2017/536,\n      author = {Jean Karim Zinzindohoué and Karthikeyan Bhargavan and Jonathan Protzenko and Benjamin Beurdouche},\n      title = {HACL*: A Verified Modern Cryptographic Library},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2017/536},\n      year = {2017},\n      url = {https://eprint.iacr.org/2017/536}\n}"
}
