ic-ec-0.1.3 has been yanked.
ic-ec — elliptic-curve cryptography
Curve25519 in two guises:
- [
X25519] — RFC 7748 key agreement. - [
Ed25519] — RFC 8032 signatures.
Both are built on a shared constant-time field implementation
([field::Fe]) with 51-bit limbs.
use X25519;
use KeyAgreement;
let alice_sk = ;
let bob_sk = ;
let = ;
X25519public_key?;
X25519public_key?;
let = ;
X25519agree?;
X25519agree?;
assert_eq!;
# Ok::
FIPS position
Curve25519 is not on the FIPS 186-5 / SP 800-186 approved list for
signatures, and X25519 is not an approved SP 800-56A scheme. They are here
because modern protocols require them, and the ontology marks them
accordingly so ic-fips blocks them in approved mode. The approved curves
(P-256/384/521, ECDSA, ECDH) and the post-quantum FIPS 203/204 schemes are
registered in the ontology with implementation_status: Planned — an agent
querying for an approved signature scheme gets an honest "not available
here" rather than a silent substitution.