HACL*
A formally verified cryptographic library written in F* and compiled to C, assembly, and WebAssembly.
At a Glance
HACL* is a formally verified cryptographic library released under the Apache 2.0 license. The generated C code is also released under an MIT license.
Engagement
Available On
Alternatives
Listed Dec 2026
About HACL*
HACL* is a library of formally verified modern cryptographic algorithms developed as part of Project Everest, with contributions from researchers and students at INRIA, Microsoft Research, and Carnegie Mellon University. The repository includes Curve25519, Ed25519, AES-GCM, Chacha20, Poly1305, SHA-2, SHA-3, HMAC, and HKDF. The README states that the project is in maintenance mode.
What It Is
HACL* is a high-assurance cryptographic library. Its code is verified with the F* framework for memory safety, functional correctness, and secret independence, which means resistance to some types of timing side-channels. The README says the algorithm set is enough to support the full NaCl API and several TLS 1.3 ciphersuites.
How the Three Sub-Projects Fit Together
- HACL*: primitives are written in Low*, a subset of F*, and compiled to C with the KaRaMeL compiler. The output is standalone C code that can be integrated into C projects, and the dist directory holds the current generated C. HACL* can also be compiled to WebAssembly.
- ValeCrypt: provides verified high-performance assembly implementations for selected primitives. It uses the Vale tool to produce code and proofs in F*, supports multiple platforms, and proves memory safety, functional correctness, and secret independence.
- EverCrypt: a cross-platform verified cryptographic provider that packages HACL* and ValeCrypt implementations. It automatically selects the fastest one available for the processor and execution environment. Its agile API makes it easy to switch between algorithms, for example from SHA2 to SHA3.
Current Status
The README warns that HACL* is in maintenance mode and will not receive new features or major evolutions. Pull requests that fix defects, such as side-channel issues or proof strengthening, are welcome. It builds and verifies using a frozen F* version from before the removal of the Low* toolchain, and the maintainers recommend nix develop for working on it.
Licensing and Citation
The code is released under Apache 2.0, and the generated C code is also released under an MIT license. The README lists which publications to cite for HACL*, EverCrypt, the WebAssembly backend, and the streaming APIs.
Collections
Popular collections
- Give Your Agent Design Taste
Collection by @linetwk
- Run YOLO Mode Without Risking Your Laptop
Collection by @reproalex
- ADE List - December 2026
Collection by @mateorivera17
- UI Design Skills for Coding Agents
Collection by @mayachen
Add HACL* to one of your collections.
Community Discussions
Be the first to start a conversation about HACL*
Share your experience with HACL*, ask questions, or help others learn from your insights.
Pricing
Open Source
HACL* is a formally verified cryptographic library released under the Apache 2.0 license. The generated C code is also released under an MIT license.
- Apache License 2.0 (OSI-approved)
- Generated C code also released under an MIT license
- Formally verified for memory safety, functional correctness, and secret independence
- Includes HACL*, ValeCrypt, and EverCrypt sub-projects
- Maintenance mode: no new features, defect fixes only
Capabilities
Key Features
- Formally verified implementations in F*/Low*
- Verification of memory safety, functional correctness, and secret independence
- Algorithms: Curve25519, Ed25519, AES-GCM, Chacha20, Poly1305, SHA-2, SHA-3, HMAC, HKDF
- Generates standalone C code via KaRaMeL
- WebAssembly compilation
- Verified assembly implementations via ValeCrypt
- EverCrypt provider with CPU-based multiplexing and an agile API
- Supports the full NaCl API and several TLS 1.3 ciphersuites
