forked from RustCrypto/traits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
77 lines (71 loc) · 2.91 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[package]
name = "elliptic-curve"
version = "0.14.0-pre.5"
description = """
General purpose Elliptic Curve Cryptography (ECC) support, including types
and traits for representing various elliptic curve forms, scalars, points,
and public/secret keys composed thereof.
"""
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/traits/tree/master/elliptic-curve"
readme = "README.md"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "ecc", "elliptic", "weierstrass"]
edition = "2021"
rust-version = "1.73"
[dependencies]
base16ct = "0.2"
crypto-bigint = { version = "=0.6.0-pre.12", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] }
hybrid-array = { version = "0.2.0-rc.8", default-features = false, features = ["zeroize"] }
rand_core = { version = "0.6.4", default-features = false }
subtle = { version = "2", default-features = false }
zeroize = { version = "1.7", default-features = false }
# optional dependencies
base64ct = { version = "1", optional = true, default-features = false, features = ["alloc"] }
digest = { version = "=0.11.0-pre.8", optional = true }
ff = { version = "0.13", optional = true, default-features = false }
group = { version = "0.13", optional = true, default-features = false }
hkdf = { version = "=0.13.0-pre.3", optional = true, default-features = false }
hex-literal = { version = "0.4", optional = true }
pem-rfc7468 = { version = "=1.0.0-pre.0", optional = true, features = ["alloc"] }
pkcs8 = { version = "=0.11.0-pre.0", optional = true, default-features = false }
sec1 = { version = "=0.8.0-pre.1", optional = true, features = ["subtle", "zeroize"] }
serdect = { version = "=0.3.0-pre.0", optional = true, default-features = false, features = ["alloc"] }
serde_json = { version = "1.0.114", optional = true, default-features = false, features = ["alloc"] }
tap = { version = "1.0.1", optional = true, default-features = false } # hack for minimal-versions support for `bits`
[dev-dependencies]
hex-literal = "0.4"
sha2 = "=0.11.0-pre.3"
sha3 = "=0.11.0-pre.3"
[features]
default = ["arithmetic"]
alloc = [
"base16ct/alloc",
"ff?/alloc",
"group?/alloc",
"pkcs8?/alloc",
"sec1?/alloc",
"zeroize/alloc"
]
std = [
"alloc",
"rand_core/std",
"pkcs8?/std",
"sec1?/std"
]
arithmetic = ["group"]
bits = ["arithmetic", "ff/bits", "dep:tap"]
dev = ["arithmetic", "dep:hex-literal", "pem", "pkcs8"]
hash2curve = ["arithmetic", "digest"]
ecdh = ["arithmetic", "digest", "dep:hkdf"]
group = ["dep:group", "ff"]
hazmat = []
jwk = ["dep:base64ct", "dep:serde_json", "alloc", "serde", "zeroize/alloc"]
pkcs8 = ["dep:pkcs8", "sec1"]
pem = ["dep:pem-rfc7468", "alloc", "arithmetic", "pkcs8", "sec1/pem"]
serde = ["dep:serdect", "alloc", "pkcs8", "sec1/serde"]
voprf = ["digest"]
[package.metadata.docs.rs]
features = ["bits", "ecdh", "hash2curve", "jwk", "pem", "std", "voprf"]
rustdoc-args = ["--cfg", "docsrs"]