p521 0.14.0-rc.13

Pure Rust implementation of the NIST P-521 (a.k.a. secp521r1) elliptic curve as defined in SP 800-186
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "p521"
version = "0.14.0-rc.13"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Pure Rust implementation of the NIST P-521 (a.k.a. secp521r1) elliptic curve
as defined in SP 800-186
"""
homepage = "https://github.com/RustCrypto/elliptic-curves/tree/master/p521"
documentation = "https://docs.rs/p521"
readme = "README.md"
keywords = [
    "crypto",
    "ecc",
    "nist",
    "secp521r1",
]
categories = [
    "cryptography",
    "no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/elliptic-curves"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
alloc = [
    "ecdsa-core?/alloc",
    "elliptic-curve/alloc",
    "primeorder?/alloc",
]
arithmetic = [
    "dep:primefield",
    "dep:primeorder",
]
default = [
    "arithmetic",
    "ecdsa",
    "pem",
    "precomputed-tables",
    "std",
]
digest = [
    "ecdsa-core/digest",
    "ecdsa-core/hazmat",
]
ecdh = [
    "arithmetic",
    "elliptic-curve/ecdh",
]
ecdsa = [
    "arithmetic",
    "ecdsa-core/algorithm",
    "sha512",
]
getrandom = [
    "ecdsa-core?/getrandom",
    "elliptic-curve/getrandom",
]
group-digest = [
    "hash2curve",
    "dep:sha2",
]
hash2curve = [
    "arithmetic",
    "dep:hash2curve",
    "primeorder/hash2curve",
]
oprf = ["group-digest"]
pem = [
    "elliptic-curve/pem",
    "pkcs8",
]
pkcs8 = [
    "ecdsa-core?/pkcs8",
    "elliptic-curve/pkcs8",
]
precomputed-tables = [
    "arithmetic",
    "primeorder/basepoint-table",
]
serde = [
    "ecdsa-core?/serde",
    "elliptic-curve/serde",
    "primeorder?/serde",
    "serdect",
]
sha512 = [
    "digest",
    "dep:sha2",
]
std = [
    "alloc",
    "ecdsa-core?/std",
    "elliptic-curve/std",
    "getrandom",
    "primeorder?/std",
]
test-vectors = ["dep:hex-literal"]

[lib]
name = "p521"
path = "src/lib.rs"

[[test]]
name = "projective"
path = "tests/projective.rs"

[[bench]]
name = "field"
path = "benches/field.rs"
harness = false

[[bench]]
name = "scalar"
path = "benches/scalar.rs"
harness = false

[dependencies.base16ct]
version = "1"

[dependencies.ecdsa-core]
version = "0.17.0-rc.21"
features = ["der"]
optional = true
default-features = false
package = "ecdsa"

[dependencies.elliptic-curve]
version = "0.14.0-rc.36"
features = ["sec1"]
default-features = false

[dependencies.hash2curve]
version = "0.14.0-rc.13"
optional = true

[dependencies.hex-literal]
version = "1"
optional = true

[dependencies.primefield]
version = "0.14.0-rc.13"
optional = true

[dependencies.primeorder]
version = "0.14.0-rc.13"
optional = true

[dependencies.rand_core]
version = "0.10"
optional = true
default-features = false

[dependencies.serdect]
version = "0.4"
optional = true
default-features = false

[dependencies.sha2]
version = "0.11"
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.7"

[dev-dependencies.ecdsa-core]
version = "0.17.0-rc.21"
features = ["dev"]
default-features = false
package = "ecdsa"

[dev-dependencies.hex-literal]
version = "1"

[dev-dependencies.primeorder]
version = "0.14.0-rc.13"
features = ["dev"]

[dev-dependencies.proptest]
version = "1.11"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(cpubits, values("16", "32", "64"))']