Crates.io | hacl |
lib.rs | hacl |
version | 0.0.3-pre.1 |
source | src |
created_at | 2017-12-12 17:14:48.169151 |
updated_at | 2023-07-13 08:17:16.673759 |
description | Crypto library using formally verified code from the HACL project |
homepage | |
repository | https://github.com/cryspen/hacl-packages |
max_upload_size | |
id | 42867 |
size | 2,828,667 |
This is the hacl
crate that provides Rust bindings for the HACL C package.
The FFI bindings are in the hacl-sys crates.
Please see the top level readme for more information about the underlying code.
Platform | Supported |
---|---|
MacOS | ✅ |
MacOS Arm64 | ✅ |
iOS | ✅ |
Linux x64 | ✅ |
Linux x86 | ✅ |
Windows x64 | ✅ |
Windows x86 | ✅ |
Arm64 Linux | ✅ |
Arm32 Linux | ✅ |
By default the hacl crate includes the random
feature that allows generating random values (keys, nonces, etc.).
But this is not verified code and uses the rand crate. It can be disabled with --no-default-features
.
Please bring your own randomness if you want to be safe.
See above for a list of supported platforms.
cargo build
To run benchmarks use cargo bench
.
All primitives are tested against the Wycheproof test vectors.
They can be run with cargo test
.
This will also run automatically generated binding tests from bindgen.