Cargo Features

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

These default features are set whenever p384 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 and digest of elliptic-curve

Affects p384::NonZeroScalar, p384::PublicKey

bits = arithmetic

Enables bits of elliptic-curve

Affects p384::ScalarBits

digest sha384?

Enables digest and hazmat of ecdsa

ecdh default = arithmetic

Enables ecdh of elliptic-curve

Affects p384::ecdh

ecdsa default = arithmetic, sha384

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 ecdsa and elliptic-curve

serde = serdect

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

sha384 ecdsa = digest, sha2
voprf = sha2

Enables voprf of elliptic-curve

test-vectors = 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 pkcs8?

Enables ecdsa

Affects p384::ecdsa

hex-literal test-vectors?
serdect serde?
sha2 sha384? voprf?