No Description

ohell baa6ec7cdc updated CMakeLists to enable configuration with cmake 3.1+ 5 years ago
cmake 614c1dca69 Merge pull request #60 from spinda/cmake-tweaks 6 years ago
impl 3de3effcab Move system-specific entropy collection impls to random/* 5 years ago
tests 1669168fe5 Add Noise_NK 6 years ago
.clang-format c6f6e00fe2 Format 8 years ago
.cmake-format.json e21d8c6a97 cmake: Expand Arduino toolchain and tidy up flags 6 years ago
.gitignore da795dafb7 cmake: Add Arduino cross-compiling and package gen 6 years ago
.travis.yml 0b7870d512 Travis: use Bionic 6 years ago
CMakeLists.txt baa6ec7cdc updated CMakeLists to enable configuration with cmake 3.1+ 5 years ago
LICENSE 2b2632f21d 2019 7 years ago
Makefile eae7b64378 Add check and distclean aliases 8 years ago
Makefile.arduino cd4f7513b0 Fix Arduino build 7 years ago
Makefile.particle de3f2cfabd Add basic support for Particle targets 6 years ago
README.md 68e3c591db Remove OpenCollective 6 years ago
hydrogen.c 8b3ba35f41 Add password hashing 8 years ago
hydrogen.h 1669168fe5 Add Noise_NK 6 years ago
library.properties de3f2cfabd Add basic support for Particle targets 6 years ago
logo.png 00aa116d9b Recompress logo 6 years ago

README.md

Build Status Financial Contributors on Open Collective Coverity Scan Build Status

libhydrogen

The Hydrogen library is a small, easy-to-use, hard-to-misuse cryptographic library.

Features:

  • Consistent high-level API, inspired by libsodium. Instead of low-level primitives, it exposes simple functions to solve common problems that cryptography can solve.
  • 100% built using just two cryptographic building blocks: the Curve25519 elliptic curve, and the Gimli permutation.
  • Small and easy to audit. Implemented as one tiny file for every set of operation, and adding a single .c file to your project is all it takes to use libhydrogen in your project.
  • The whole code is released under a single, very liberal license (ISC).
  • Zero dynamic memory allocations and low stack requirements (median: 32 bytes, max: 128 bytes). This makes it usable in constrained environments such as microcontrollers.
  • Portable: written in standard C99. Supports Linux, *BSD, MacOS, Windows, and the Arduino IDE out of the box.
  • Can generate cryptographically-secure random numbers, even on Arduino boards.
  • Attempts to mitigate the implications of accidental misuse, even on systems with an unreliable PRG and/or no clock.

Non-goals:

  • Having multiple primitives serving the same purpose, even to provide compatibility with other libraries.
  • Networking -- but a simple key exchange API based on the Noise protocol is available, and a STROBE-based transport API will be implemented.
  • Interoperability with other libraries.
  • Replacing libsodium. Libhydrogen tries to keep the number of APIs and the code size down to a minimum.

Libhydrogen documentation

The documentation is maintained in the libhydrogen wiki.

The legacy libhydrogen code (leveraging XChaCha20, SipHashX, BLAKE2SX, Curve25519) remains available in the v0 branch.

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].