# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.73" name = "p256" version = "0.14.0-pre.2" authors = ["RustCrypto Developers"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = """ Pure Rust implementation of the NIST P-256 (a.k.a. secp256r1, prime256v1) elliptic curve as defined in SP 800-186, with support for ECDH, ECDSA signing/verification, and general purpose curve arithmetic """ homepage = "https://github.com/RustCrypto/elliptic-curves/tree/master/p256" documentation = "https://docs.rs/p256" readme = "README.md" keywords = [ "crypto", "ecc", "nist", "prime256v1", "secp256r1", ] categories = [ "cryptography", "no-std", ] license = "Apache-2.0 OR MIT" repository = "https://github.com/RustCrypto/elliptic-curves" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "p256" path = "src/lib.rs" [[test]] name = "affine" path = "tests/affine.rs" [[test]] name = "ecdsa" path = "tests/ecdsa.rs" [[test]] name = "pkcs8" path = "tests/pkcs8.rs" [[test]] name = "projective" path = "tests/projective.rs" [[test]] name = "scalar" path = "tests/scalar.rs" [[bench]] name = "field" path = "benches/field.rs" harness = false required-features = ["expose-field"] [[bench]] name = "scalar" path = "benches/scalar.rs" harness = false [dependencies.ecdsa-core] version = "=0.17.0-pre.9" features = ["der"] optional = true default-features = false package = "ecdsa" [dependencies.elliptic-curve] version = "0.14.0-rc.0" features = ["sec1"] default-features = false [dependencies.hex-literal] version = "0.4" optional = true [dependencies.primeorder] version = "=0.14.0-pre.2" optional = true [dependencies.serdect] version = "0.3.0-rc.0" optional = true default-features = false [dependencies.sha2] version = "=0.11.0-pre.4" optional = true default-features = false [dev-dependencies.blobby] version = "0.3" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.ecdsa-core] version = "=0.17.0-pre.9" features = ["dev"] default-features = false package = "ecdsa" [dev-dependencies.hex-literal] version = "0.4" [dev-dependencies.primeorder] version = "=0.14.0-pre.2" features = ["dev"] [dev-dependencies.proptest] version = "1" [dev-dependencies.rand_core] version = "0.6" features = ["getrandom"] [features] alloc = [ "ecdsa-core?/alloc", "elliptic-curve/alloc", "primeorder?/alloc", ] arithmetic = [ "dep:primeorder", "elliptic-curve/arithmetic", ] bits = [ "arithmetic", "elliptic-curve/bits", ] default = [ "arithmetic", "ecdsa", "pem", "std", ] digest = [ "ecdsa-core/digest", "ecdsa-core/hazmat", ] ecdh = [ "arithmetic", "elliptic-curve/ecdh", ] ecdsa = [ "arithmetic", "ecdsa-core/signing", "ecdsa-core/verifying", "sha256", ] expose-field = ["arithmetic"] hash2curve = [ "arithmetic", "elliptic-curve/hash2curve", ] jwk = ["elliptic-curve/jwk"] pem = [ "elliptic-curve/pem", "ecdsa-core/pem", "pkcs8", ] pkcs8 = [ "ecdsa-core?/pkcs8", "elliptic-curve/pkcs8", ] serde = [ "ecdsa-core?/serde", "elliptic-curve/serde", "primeorder?/serde", "serdect", ] sha256 = [ "digest", "sha2", ] std = [ "alloc", "ecdsa-core?/std", "elliptic-curve/std", ] test-vectors = ["dep:hex-literal"] voprf = [ "elliptic-curve/voprf", "sha2", ]