#elliptic-curve #nist #crypto #secp521r1

no-std p521

Pure Rust implementation of the NIST P-521 (a.k.a. secp521r1) elliptic curve as defined in SP 800-186

2 releases

0.13.3 Nov 11, 2023
0.13.2 Nov 10, 2023
0.13.1 Nov 10, 2023
0.13.0 Mar 4, 2023
0.0.0 Oct 3, 2018

#2131 in Cryptography

Download history 4787/week @ 2023-12-14 3818/week @ 2023-12-21 2714/week @ 2023-12-28 5450/week @ 2024-01-04 8171/week @ 2024-01-11 9958/week @ 2024-01-18 9316/week @ 2024-01-25 7819/week @ 2024-02-01 9977/week @ 2024-02-08 9453/week @ 2024-02-15 9259/week @ 2024-02-22 13604/week @ 2024-02-29 15576/week @ 2024-03-07 16774/week @ 2024-03-14 16797/week @ 2024-03-21 11883/week @ 2024-03-28

63,758 downloads per month
Used in 43 crates (10 directly)

Apache-2.0 OR MIT

11K SLoC

RustCrypto: NIST P-521 (secp521r1) elliptic curve

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of the NIST P-521 (a.k.a. secp521r1) elliptic curve.


⚠️ Security Warning

The elliptic curve arithmetic contained in this crate has never been independently audited!

This crate has been designed with the goal of ensuring that secret-dependent operations are performed in constant time (using the subtle crate and constant-time formulas). However, it has not been thoroughly assessed to ensure that generated assembly is constant time on common CPU architectures.


Supported Algorithms

About P-521

NIST P-521 is a Weierstrass curve specified in SP 800-186: Recommendations for Discrete Logarithm-based Cryptography: Elliptic Curve Domain Parameters.

Also known as secp521r1 (SECG).

Minimum Supported Rust Version

Rust 1.65 or higher.

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

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above


All crates licensed under either of

at your option.


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.


~49K SLoC