Giter VIP home page Giter VIP logo

hhugo / hacl-star Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hacl-star/hacl-star

0.0 0.0 0.0 401.99 MB

HACL*, a formally verified cryptographic library written in F*

License: Apache License 2.0

C 16.32% OCaml 1.85% Standard ML 0.07% Makefile 0.89% Shell 0.37% Assembly 11.45% CMake 0.17% C++ 1.41% Python 0.77% Dockerfile 0.03% F* 66.40% Gnuplot 0.10% JavaScript 0.18% Batchfile 0.01%

hacl-star's Introduction

A High-Assurance Cryptographic Library

This repository contains verified code for a library of modern cryptographic algorithms, including Curve25519, Ed25519, AES-GCM, Chacha20, Poly1305, SHA-2, SHA-3, HMAC, and HKDF. This set of algorithms is enough to support the full NaCl API and several TLS 1.3 ciphersuites. The code for all of these algorithms is formally verified using the F* verification framework for memory safety, functional correctness, and secret independence (resistance to some types of timing side-channels).

Documentation: More detailed documentation on the library and our verification method can be found at hacl-star.github.io.

The code in this repository is divided into three closely-related sub-projects, all developed as part of Project Everest.

HACL*

HACL* is a formally verified library of modern cryptographic algorithms written in a subset of F* called Low* and compiled to C using a compiler called KreMLin. The Low* source code for each primitive is verified for memory safety, functional correctness, and secret independence. The compiler generates efficient, readable, standalone C code for each algorithm that can be easily integrated into any C project. We include the current C code for various HACL* algorithms in the dist directory. HACL* can also be compiled to WebAssembly.

ValeCrypt

ValeCrypt provides formally verified high-performance cryptographic code for selected primitives in assembly language. It relies on the Vale tool to produce code and proofs in F*. Vale supports multiple platforms and proves that its implementations are memory safe, functionally correct, and that timing and memory accesses are secret independent.

EverCrypt

EverCrypt is a high-performance, cross-platform, formally verified modern cryptographic provider that packages implementations from HACL* and ValeCrypt, and automatically picks the fastest one available, depending on processor support and the target execution environment (multiplexing). Furthermore, EverCrypt offers an (agile) API that makes it simple to switch between algorithms (e.g., from SHA2 to SHA3).

Status

Warning: This is a research project. Although some of our code is currently used in popular products like Mozilla Firefox and Wireguard, we highly recommend that users consult with the HACL* maintainers before using this code in production systems.

We are actively developing and integrating our code on the master branch, which tracks F*'s master branch. Ongoing developments on new cryptographic primitives happen in the dev branch, which runs a little ahead of master. You can find a current snapshot of our C and assembly code in the dist directory; stable releases of the full library can be found in the releases page.

License

All the code in this repository is released under an Apache 2.0 license. The generated C code from HACL* is also released under an MIT license. Contact the maintainers if you have other licensing requirements.

Contact or Contribute

This repository contains contributions from many students and researchers at INRIA, Microsoft Research, and Carnegie Mellon University, and it is under active development. The primary authors of each verified algorithm are noted in the corresponding AUTHORS.md file. For questions and comments, or if you want to contribute to the project, contact the current maintainers at [email protected].

hacl-star's People

Contributors

protz avatar jkzinzindohoue avatar dzomo avatar polubelova avatar s-zanella avatar r1km avatar sonmarcho avatar parno avatar karthikbhargavan avatar chris-hawblitzel avatar jaybosamiya avatar nikswamy avatar wintersteiger avatar aseemr avatar msprotz avatar joonwonc avatar victor-dumitrescu avatar tahina-pro avatar frosne avatar ad-l avatar franziskuskiefer avatar denismerigoux avatar beurdouche avatar mtzguido avatar gugavaro avatar irakoton avatar fournet avatar projectyoung avatar blipp avatar prosecco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.