security/libhydrogen 0.0.0.g20250130 DragonFly
Lightweight, secure, easy-to-use crypto library for constrained environments
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ISCL
- Categories
- security
- Package size
- 20.4 KiB, 84.0 KiB installed
Description
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%25 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.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | security/libhydrogen | 0.0.0.g20250130 |
| FreeBSD | security/libhydrogen | 0.0.0.g20260608 |
| HardenedBSD | security/libhydrogen | 0.0.0.g20260608 |
| GhostBSD | security/libhydrogen | 0.0.0.g20260608 |
Install
Binary package:
pkg install libhydrogen
From DPorts:
cd /usr/dports/security/libhydrogen && make install clean
Dependencies
No port depends on this one.