IntelligenceAlgorithmsecdsa-p256
ECDSA on P-256
ECDSA on the NIST P-256 curve (secp256r1), specified in FIPS 186-5 with curve parameters in SP 800-186. It is common in TLS certificates, WebAuthn passkeys, JSON Web Tokens (ES256) and hardware security modules.
In short
What a quantum computer changes.
- Quantum effect
- Broken by Shor's algorithm
- Family
- Classical public keyRests on elliptic-curve discrete logarithm.
- What it means
- Shor's algorithm, run on a large, fault-tolerant quantum computer, factors large numbers and solves discrete logarithms, including those on elliptic curves, far faster than any known classical method. The security of this algorithm rests on elliptic-curve discrete logarithm, which is one of those problems. Anyone with such a machine could work out a private key from the matching public key. Signatures could then be forged, and data protected by a key exchange built on this algorithm could be decrypted, including traffic recorded now and kept for later. Longer keys do not fix this. The usual answer is to plan a move to a post-quantum or hybrid scheme.
This describes the family, not any project that uses it.
39 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| ellipticnpm | Pure JavaScript elliptic-curve library with ECDSA on secp256k1 and the NIST P curves, EdDSA on Ed25519, and ECDH. |
| @noble/curvesnpm | Pure TypeScript elliptic-curve library: ECDSA on secp256k1 and the NIST P curves, BIP340 Schnorr, Ed25519 and Ed448, X25519 and X448, ECDH, BLS signatures and pairings on BLS12-381 and BN254, FROST threshold signatures and the Poseidon hash. |
| jsrsasignnpm | Pure JavaScript library for RSA, RSA-PSS, ECDSA and DSA signatures, hashes and HMAC, PKCS key formats, X.509 certificates, CRL, OCSP, CMS and JWS/JWT. |
| @peculiar/webcryptonpm | WebCrypto API implementation for Node.js on top of the built-in crypto module, adding curves such as secp256k1, brainpool, Ed448 and X448 and non-standard mechanisms such as DES and RSAES-PKCS1-v1_5. |
| crypto-browserifynpm | Browser port of the Node.js crypto module that re-exports the browserify packages for hashes, HMAC, PBKDF2, AES, Diffie-Hellman, ECDH, RSA and ECDSA signing and RSA encryption. |
| browserify-signnpm | Node-style createSign and createVerify for browsers, covering RSA PKCS#1 v1.5, DSA and ECDSA on secp256k1 and the NIST P curves. |
| jsonwebtokennpm | JSON Web Token signing and verification with HMAC-SHA-2, RSA PKCS#1 v1.5, RSA-PSS and ECDSA on P-256, P-384 and P-521, computed by the Node.js crypto module. |
| jwsnpm | JSON Web Signature creation and verification with HMAC-SHA-2, RSA PKCS#1 v1.5, RSA-PSS and ECDSA on P-256, P-384 and P-521. |
| jwanpm | JSON Web Algorithms signing and verification for JWS: HMAC-SHA-2, RSA PKCS#1 v1.5, RSA-PSS and ECDSA on P-256, P-384 and P-521. |
| josenpm | JWS, JWE, JWT and JWK for Node.js, browsers and other WebCrypto runtimes, with RSA, ECDSA, Ed25519 and ML-DSA signatures, HMAC, RSA-OAEP, ECDH-ES and AES key management, AES-GCM and AES-CBC-HMAC content encryption and PBES2. |
| node-josenpm | JOSE (JWS, JWE, JWK) implementation from Cisco with RSA, ECDSA and ECDH on the NIST P curves, HMAC, AES (GCM, CBC-HMAC and key wrap), HKDF and PBES2. |
| openpgpnpm | OpenPGP.js, a JavaScript implementation of OpenPGP (RFC 9580): RSA, DSA, ECDSA and ECDH on NIST, brainpool and secp256k1 curves, Ed25519, Ed448, X25519 and X448, AES with GCM, OCB and EAX, and Argon2 key derivation. |
| ssh2npm | SSH2 client and server in JavaScript for Node.js, with Curve25519, ECDH and finite-field Diffie-Hellman key exchange, Ed25519, ECDSA, RSA and DSA host keys, AES-GCM, AES-CTR, AES-CBC and ChaCha20-Poly1305 ciphers, and HMAC. |
| sshpknpm | Parses, converts and uses SSH keys and certificates of type RSA, DSA, ECDSA (nistp256, nistp384, nistp521) and Ed25519, with signing, verification and Diffie-Hellman helpers. |
| @simplewebauthn/servernpm | Server-side WebAuthn (passkey) registration and authentication, verifying ECDSA P-256, P-384 and P-521, Ed25519, RSA and ML-DSA signatures from authenticators. |
| viemnpm | TypeScript Ethereum interface with secp256k1 local accounts, BIP-39 and BIP-32 accounts, WebAuthn P-256 accounts, and Keccak-256, SHA-256 and RIPEMD-160 utilities. |
| @aztec/bb.jsnpm | WebAssembly and native build of the Barretenberg prover with UltraHonk proving over BN254, Pedersen, Poseidon2 and BLAKE2s hashing, ECDSA on secp256k1 and P-256, Grumpkin Schnorr signatures and AES. |
| @libp2p/cryptonpm | libp2p key and crypto primitives: Ed25519, secp256k1, ECDSA P-256, P-384 and P-521, and RSA keys, ephemeral ECDH, AES-GCM, HMAC and PBKDF2. |
| @mysten/suinpm | Sui TypeScript SDK with Ed25519, secp256k1, secp256r1 and ML-DSA-65 key pairs, passkeys, multisig, BLAKE2b addresses and zkLogin Poseidon hashing. |
| @taquito/signernpm | Tezos in-memory signer for Ed25519, secp256k1, P-256, BLS and ML-DSA-44 keys, with BIP-39 mnemonics and PBKDF2 and NaCl secretbox encrypted secret keys. |
| @aptos-labs/ts-sdknpm | Aptos TypeScript SDK with Ed25519, secp256k1 and secp256r1 WebAuthn accounts, keyless accounts verified with Groth16 proofs over BN254 and Poseidon, and AES-GCM payload encryption. |
| p256crates.io | Pure Rust NIST P-256 (secp256r1) curve with ECDSA signing and verification and ECDH. |
| ecdsacrates.io | Generic ECDSA signing and verification (FIPS 186-4, with RFC 6979 deterministic nonces) for any elliptic curve crate that supplies the arithmetic. |
| ringcrates.io | Cryptographic library largely derived from BoringSSL, offering ECDSA P-256 and P-384, Ed25519, RSA signatures, X25519 and ECDH, AES-GCM, ChaCha20-Poly1305, SHA-1 and SHA-2, HMAC, HKDF, PBKDF2 and a system random generator. |
| aws-lc-rscrates.io | ring-compatible Rust API over the AWS-LC C library, adding ML-KEM, ML-DSA, RSA encryption, raw AES modes and an optional FIPS build. |
| aws-lc-syscrates.io | Low-level generated FFI bindings to the AWS-LC C cryptography library, which aws-lc-rs wraps. |
| opensslcrates.io | Rust bindings to OpenSSL covering TLS, X.509, RSA, DSA, Diffie-Hellman, elliptic curve and Edwards curve keys, symmetric ciphers, hashes, MACs and key derivation. |
| openssl-syscrates.io | Raw FFI declarations for the OpenSSL C library, used by the openssl crate. |
| boringcrates.io | Rust bindings to BoringSSL with TLS support, RSA, DSA, Diffie-Hellman, ECDSA and ECDH, Ed25519 and X25519, ML-KEM, ML-DSA, HPKE, AEAD ciphers, hashes, HMAC and key derivation. |
| mbedtlscrates.io | Rust wrapper for Mbed TLS covering TLS, X.509, RSA, ECDSA, ECDH, Diffie-Hellman, AES and ChaCha20-Poly1305, hashes, HMAC, HKDF, PBKDF2 and DRBG random generators. |
| botancrates.io | Rust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms. |
| libcruxcrates.io | Re-export crate for the libcrux library of formally verified implementations, including ML-KEM, ML-DSA, X25519, P-256 ECDSA and ECDH, Ed25519, RSA-PSS, AES-GCM, ChaCha20-Poly1305, SHA-2, SHA-3, BLAKE2, HMAC, HKDF and HPKE. |
| rustlscrates.io | TLS 1.2 and TLS 1.3 library in Rust whose cryptography comes from a pluggable provider, aws-lc-rs by default or ring. |
| rustls-webpkicrates.io | Web PKI X.509 certificate path validation for rustls, verifying ECDSA, Ed25519, RSA and ML-DSA certificate signatures through ring or aws-lc-rs. |
| rcgencrates.io | X.509 certificate, CSR and CRL generator that signs with ECDSA, Ed25519, RSA or ML-DSA keys. |
| sequoia-openpgpcrates.io | OpenPGP (RFC 9580 and RFC 4880) implementation with RSA, DSA, ECDSA, ECDH, EdDSA, X25519 and X448 keys, post-quantum ML-KEM, ML-DSA and SLH-DSA algorithms, AES and SHA-1, SHA-2 and SHA-3 hashes. |
| jsonwebtokencrates.io | JSON Web Token encoding and validation with HS256 to HS512, RS256 to RS512, PS256 to PS512, ES256, ES384 and EdDSA. |
| josekitcrates.io | JOSE library (JWT, JWS, JWE, JWK) with HMAC, RSA, ECDSA, EdDSA, ECDH-ES, AES key wrap, AES-GCM and PBES2, backed by OpenSSL, AWS-LC or pure Rust crates. |
| revm-precompilecrates.io | EVM precompiled contracts for revm: ecrecover (secp256k1), P-256 verification (RIP-7212), SHA-256, RIPEMD-160, the BLAKE2 compression function, modexp, BN254 operations and pairing, BLS12-381 operations (EIP-2537) and KZG point evaluation (EIP-4844). |
2 listed
Sources
- FIPS 186-5: Digital Signature Standard (DSS)csrc.nist.govRetrieved 3 December 2026
- SP 800-186: Recommendations for Discrete Logarithm-based Cryptography: Elliptic Curve Domain Parameterscsrc.nist.govRetrieved 3 December 2026
Full record
- Identifier
- ecdsa-p256
- Kind
- signature
- Family
- Classical public key
- Rests on
- elliptic-curve discrete logarithm
- Quantum effect
- Broken by Shor's algorithm
Standards
- FIPS 186-5Digital Signature Standard (DSS)NIST, final, published 3 February 2023Checked 3 December 2026
- SEC 2SEC 2: Recommended Elliptic Curve Domain Parameters, Version 2.0SECG, informational, published 27 January 2010Checked 3 December 2026