Cargo Features

[dependencies]
p521 = { version = "0.13.3", default-features = false, features = ["std", "alloc", "arithmetic", "digest", "ecdh", "ecdsa", "getrandom", "hash2curve", "jwk", "pem", "pkcs8", "serde", "sha512", "voprf", "test-vectors"] }
default = arithmetic, ecdsa, getrandom, pem, std

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

std default = alloc

Enables std of optional ecdsa and elliptic-curve

ecdsa:

optional dependencies

alloc std

Enables alloc of optional ecdsa and elliptic-curve

arithmetic default ecdh? ecdsa hash2curve?

Enables primeorder

Affects p521::NonZeroScalar, p521::PublicKey

digest sha512?

Enables digest and hazmat of ecdsa

ecdh = arithmetic

Enables ecdh of elliptic-curve

Affects p521::ecdh

ecdsa default = arithmetic, sha512

Enables signing and verifying of ecdsa

Affects ecdsa::SigningKey, ecdsa::VerifyingKey

getrandom default

Enables getrandom of rand_core

hash2curve = arithmetic

Enables hash2curve of elliptic-curve

jwk

Enables jwk of elliptic-curve

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

voprf

Enables sha2, voprf of elliptic-curve

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 getrandom
serdect serde?