Coder Social home page Coder Social logo

gebner / noise-star Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inria-prosecco/noise-star

0.0 1.0 0.0 3.33 MB

Verified implementations for the Noise family of protocols

License: Apache License 2.0

Shell 0.01% C 98.24% OCaml 0.01% Makefile 0.03% F* 1.72%

noise-star's Introduction

Noise*

This repository contains formally verified implementations of all 59 protocols in the Noise family, in C. Each implementation manages a state machine, a peer list, and offers a high-level defensive API that prevents user errors. See our paper for more details. We rely on verified cryptographic primitives provided by the HACL* project, although it should not be hard to edit the C code to call the library of your choice.

Generated Verified Implementations

The generated implementations are in /noise-all. This directory contains a subdirectory for each protocol of the Noise family, itself divided into further subdirectories for the various choices of cipher suites. For instance, the implementation of protocol IKpsk2, instantiated with Curve25519, ChaChaPoly and SHA256, is in /noise-all/api-IKpsk2/IKpsk2_25519_ChaChaPoly_SHA256.

Build Instructions

Clone and build HACL*.

git checkout https://github.com/project-everest/hacl-star
cd hacl-star
export HACL_HOME=$(pwd)
cd dist/gcc-compatible
make -j

Then, navigate to one of the directories you are interested in:

cd api-IKpsk2/IKpsk2_25519_ChaChaPoly_SHA256
make -j

In order to link a final executable, remember to pass -L$HACL-HOME/dist/gcc-compatible -levercrypt to the linker (after -lnoiseapi).

Examples

See examples for an example of usuage of the API. Building and running the example simply requires executing make in the subdirectory, after HACL* and Noise* have been properly built.

The example uses IKpsk2, with Curve25519, ChaChaPoly and SHA256 (non-optimized implementations).

Verified Implementation

The generic implementation formally verified with F* is in src/.

Specific Choices of Cryptographic Implementations

There are a lot of cipher suites, and most of the cryptographic primitives have several (optimized) implementations. Because there are too many of them, we only generate implementations for a limited choice of cryptographic primitive implementations. If you desire a specific choice of implementations made available by the Hacl* library, feel free to contact the authors.

Paper

The results of this work have been published at S&P 2022. The paper (long version) is available here.

noise-star's People

Contributors

sonmarcho avatar gebner avatar protz avatar msprotz avatar

Watchers

 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.