Cargo Features
[dependencies]
p256 = { version = "0.14.0-pre.11", default-features = false, features = ["std", "alloc", "arithmetic", "bits", "digest", "ecdh", "ecdsa", "expose-field", "hash2curve", "group-digest", "oprf", "pem", "pkcs8", "serde", "sha256", "test-vectors"] }
- default = arithmetic, ecdsa, pem, std
-
These default features are set whenever
p256
is added without
somewhere in the dependency tree.default-features = false - 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 primefield and primeorder, arithmetic of elliptic-curve
Affects
p256::BlindedScalar
,p256::NonZeroScalar
,p256::PublicKey
… - bits = arithmetic
-
Enables bits of elliptic-curve
Affects
p256::ScalarBits
… - digest sha256?
- 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 group-digest? = arithmetic
-
Enables hash2curve, hash2curve of primeorder
- group-digest oprf? = hash2curve, sha2
- oprf = group-digest
- 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
- 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 group-digest? sha256?