4 releases

0.0.2 Mar 25, 2025
0.0.2-beta.3 Feb 24, 2025
0.0.2-alpha.3 Jul 23, 2024
0.0.2-alpha.1 Jul 3, 2024

#2775 in Cryptography

Download history 331/week @ 2024-12-13 64/week @ 2024-12-20 14/week @ 2024-12-27 195/week @ 2025-01-03 330/week @ 2025-01-10 372/week @ 2025-01-17 144/week @ 2025-01-24 159/week @ 2025-01-31 92/week @ 2025-02-07 138/week @ 2025-02-14 341/week @ 2025-02-21 348/week @ 2025-02-28 277/week @ 2025-03-07 337/week @ 2025-03-14 267/week @ 2025-03-21 197/week @ 2025-03-28

1,113 downloads per month
Used in 5 crates (2 directly)

Apache-2.0

225KB
4K SLoC

Elliptic Curve Diffie-Hellman (ECDH)

This crate provides an API for performing elliptic curve Diffie-Hellman. Currently supported curves are Curve 25519 and NIST curve P256.

Verification

verified-hacl

This crate contains safe Rust that was compiled from verified C originating in the HACL* project.

The code for [these] algorithms is formally verified using the F* verification framework for memory safety, functional correctness, and secret independence (resistance to some types of timing side-channels). -- The HACL* repository

For more details on the compilation from C to Rust, please refer to "Compiling C to Safe Rust, Formalized" by Aymeric Fromherz and Jonathan Protzenko.

Dependencies

~2.5MB
~40K SLoC