Cargo Features

[dependencies]
p521 = { version = "0.14.0-rc.7", default-features = false, features = ["std", "alloc", "arithmetic", "bits", "digest", "ecdh", "ecdsa", "expose-field", "hash2curve", "getrandom", "group-digest", "oprf", "pem", "pkcs8", "serde", "sha512", "test-vectors", "rand_core"] }
default = arithmetic, ecdsa, pem, std

These default features are set whenever p521 is added without default-features = false somewhere in the dependency tree.

std default = alloc, getrandom

Enables std of optional ecdsa and elliptic-curve

ecdsa:

optional dependencies

alloc std

Enables alloc of optional ecdsa, elliptic-curve, and optional primeorder

arithmetic default bits? ecdh? ecdsa expose-field? hash2curve?

Enables primefield and primeorder

Affects p521::NonZeroScalar, p521::PublicKey

bits = arithmetic

Enables bits of elliptic-curve

digest sha512?

Enables digest and hazmat of ecdsa

ecdh = arithmetic

Enables ecdh of elliptic-curve

Affects p521::ecdh

ecdsa default = arithmetic, sha512

Enables algorithm of ecdsa

Affects ecdsa::SigningKey, ecdsa::VerifyingKey

expose-field = arithmetic
hash2curve group-digest? = arithmetic

Enables hash2curve, hash2curve of primeorder

getrandom std

Enables getrandom of optional ecdsa and elliptic-curve

group-digest oprf? = hash2curve

Enables sha2

oprf = group-digest
pem default = pkcs8

Enables pem of elliptic-curve

pkcs8 pem

Enables pkcs8 of optional ecdsa and elliptic-curve

serde = serdect

Enables serde of optional ecdsa, elliptic-curve, and optional primeorder

sha512 ecdsa = digest

Enables sha2

test-vectors

Enables hex-literal

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ecdsa-core digest? ecdsa

Enables ecdsa

Affects p521::ecdsa

rand_core implicit feature

Enables rand_core

rand_core:

Core random number generation traits and tools for implementation

serdect serde?