{"id":57595,"library":"p256","title":"p256","description":"Pure Rust implementation of the NIST P-256 elliptic curve with support for ECDH, ECDSA, and curve arithmetic.","status":"active","version":"0.13.2","language":"rust","source_language":null,"source_url":"https://github.com/RustCrypto/elliptic-curves","tags":["elliptic-curve","ecdsa","ecdh","cryptography","nist"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\np256 = \"0.13.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add p256","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"SigningKey","correct":"use p256::ecdsa::SigningKey;"}],"quickstart":{"code":"use p256::ecdsa::{SigningKey, signature::Signer};\nuse rand_core::OsRng;\n\nfn main() {\n    let signing_key = SigningKey::random(&mut OsRng);\n    let message = b\"hello world\";\n    let signature = signing_key.sign(message);\n    println!(\"Signature: {:?}\", signature);\n}","lang":"rust","description":"Generate a P-256 ECDSA signing key and sign a message."},"warnings":[{"fix":"Add `features = [\"ecdsa\"]` to the p256 dependency in Cargo.toml.","message":"Requires the `ecdsa` feature for ECDSA functionality.","severity":"gotcha","affected_versions":">=0.10.0"}],"env_vars":null,"search_vec":"'-256':9 'arithmet':19 'cryptographi':25 'curv':11,18,22 'ecdh':15,24 'ecdsa':16,23 'ellipt':10,21 'elliptic-curv':20 'implement':4 'nist':7,26 'p':8 'p256':1 'pure':2 'rust':3 'support':13","created_at":"2026-06-16T15:50:04.326278+00:00","updated_at":"2026-06-16T15:50:04.326278+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/RustCrypto/elliptic-curves/tree/master/p256","github":"https://github.com/RustCrypto/elliptic-curves","docs":"https://docs.rs/p256/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}