Cargo Features
[dependencies]
p521 = { version = "0.14.0-pre.2", default-features = false, features = ["std", "alloc", "arithmetic", "digest", "ecdh", "ecdsa", "expose-field", "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
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 ecdh? ecdsa expose-field? hash2curve?
-
Enables primefield and primeorder
Affects
p521::NonZeroScalar
,p521::PublicKey
… - digest sha512?
- 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
… - expose-field = arithmetic
- getrandom default
- 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.