Home

Awesome

RustCrypto: Elliptic Curves Rust Version Project Chat dependency status

General purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof.

All curves reside in the separate crates and implemented using traits from the elliptic-curve crate.

Crates in this repo do not require the standard library (i.e. no_std capable) and can be easily used for bare-metal or WebAssembly programming.

Crates

NOTE: Most crates have field/point arithmetic implementations gated under the arithmetic cargo feature as noted in the arithmetic column below:

NameCurvearithmetic?Crates.ioDocumentationBuild Status
bign256bign-curve256v1crates.ioDocumentationbuild
bp256brainpoolP256r1/t1🚧crates.ioDocumentationbuild
bp384brainpoolP384r1/t1🚧crates.ioDocumentationbuild
k256secp256k1crates.ioDocumentationbuild
p192NIST P-192crates.ioDocumentationbuild
p224NIST P-224crates.ioDocumentationbuild
p256NIST P-256crates.ioDocumentationbuild
p384NIST P-384crates.ioDocumentationbuild
p521NIST P-521crates.ioDocumentationbuild
sm2SM2crates.ioDocumentationbuild

🚧: curve arithmetic implementation under construction

Please see our tracking issue for additional elliptic curves if you are interested in curves beyond the ones listed here.

Minimum Supported Rust Version

All crates in this repository support Rust 1.73 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

License

All crates licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.