-
Notifications
You must be signed in to change notification settings - Fork 251
Expand file tree
/
Copy pathCargo.toml
More file actions
71 lines (64 loc) · 2.49 KB
/
Copy pathCargo.toml
File metadata and controls
71 lines (64 loc) · 2.49 KB
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
[package]
name = "elliptic-curve"
version = "0.14.1"
authors = ["RustCrypto Developers"]
edition = "2024"
rust-version = "1.85"
documentation = "https://docs.rs/elliptic-curve"
readme = "README.md"
repository = "https://github.com/RustCrypto/traits"
license = "Apache-2.0 OR MIT"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "ecc", "elliptic", "weierstrass"]
description = """
General purpose Elliptic Curve Cryptography (ECC) support, including traits and generic types for
representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof.
"""
[dependencies]
array = { package = "hybrid-array", version = "0.4.13", default-features = false, features = ["zeroize"] }
bigint = { package = "crypto-bigint", version = "0.7.5", default-features = false, features = ["hybrid-array", "rand_core", "subtle", "zeroize"] }
base16ct = "1"
common = { package = "crypto-common", version = "0.2", features = ["rand_core"] }
rand_core = { version = "0.10", default-features = false }
subtle = { version = "2.6", default-features = false }
zeroize = { version = "1.7", default-features = false }
# optional dependencies
digest = { version = "0.11", optional = true }
ff = { version = "0.14", optional = true, default-features = false }
group = { version = "0.14", optional = true, default-features = false }
hkdf = { version = "0.13", optional = true, default-features = false }
hex-literal = { version = "1", optional = true }
pem-rfc7468 = { version = "1", optional = true, features = ["alloc"] }
pkcs8 = { version = "0.11", optional = true, default-features = false }
sec1 = { version = "0.8", optional = true, features = ["ctutils", "subtle", "zeroize"] }
serdect = { version = "0.4", optional = true, default-features = false, features = ["alloc"] }
[dev-dependencies]
hex-literal = "1"
[features]
default = ["arithmetic"]
alloc = [
"base16ct/alloc",
"ff?/alloc",
"group?/alloc",
"array/alloc",
"pkcs8?/alloc",
"sec1?/alloc",
"zeroize/alloc"
]
std = [
"alloc",
"pkcs8?/std",
"sec1?/std"
]
arithmetic = ["group"]
dev = ["arithmetic", "dep:hex-literal", "pem", "pkcs8"]
ecdh = ["arithmetic", "digest", "dep:hkdf"]
getrandom = ["arithmetic", "bigint/getrandom", "common/getrandom"]
group = ["dep:group", "ff"]
pkcs8 = ["dep:pkcs8", "sec1"]
pem = ["dep:pem-rfc7468", "alloc", "arithmetic", "pkcs8/pem", "sec1/pem"]
serde = ["dep:serdect", "alloc", "pkcs8", "sec1/serde"]
[lints]
workspace = true
[package.metadata.docs.rs]
features = ["ecdh", "pem", "serde", "std"]