Cargo Features

[dependencies]
p256 = { version = "0.14.0-pre.2", default-features = false, features = ["std", "alloc", "arithmetic", "bits", "digest", "ecdh", "ecdsa", "expose-field", "hash2curve", "jwk", "pem", "pkcs8", "serde", "sha256", "voprf", "test-vectors"] }
default = arithmetic, ecdsa, pem, std

These default features are set whenever p256 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, elliptic-curve, and optional primeorder

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

Enables primeorder, arithmetic of elliptic-curve

Affects p256::BlindedScalar, p256::NonZeroScalar, p256::PublicKey

bits = arithmetic

Enables bits of elliptic-curve

Affects p256::ScalarBits

digest sha256?

Enables digest and hazmat of ecdsa

ecdh = arithmetic

Enables ecdh of elliptic-curve

Affects p256::ecdh

ecdsa default = arithmetic, sha256

Enables signing and verifying of ecdsa

Affects ecdsa::SigningKey, ecdsa::VerifyingKey

expose-field = arithmetic
hash2curve = arithmetic

Enables hash2curve of elliptic-curve

jwk

Enables jwk of elliptic-curve

pem default = pkcs8

Enables pem of ecdsa and elliptic-curve

pkcs8 pem

Enables pkcs8 of optional ecdsa and elliptic-curve

serde = serdect

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

sha256 ecdsa = digest, sha2
voprf = sha2

Enables 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 pem

Enables ecdsa

Affects p256::ecdsa

serdect serde?
sha2 sha256? voprf?