-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathCargo.toml
More file actions
97 lines (89 loc) · 3.46 KB
/
Cargo.toml
File metadata and controls
97 lines (89 loc) · 3.46 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[package]
name = "hpke"
repository = "https://github.com/rozbb/rust-hpke"
documentation = "https://docs.rs/hpke"
description = "An implementation of the HPKE hybrid encryption standard (RFC 9180) in pure Rust"
readme = "README.md"
version = "0.14.0-pre.2"
authors = ["Michael Rosenberg <michael@mrosenberg.pub>"]
edition = "2021"
license = "MIT/Apache-2.0"
keywords = ["cryptography", "crypto", "key-exchange", "encryption", "aead"]
categories = ["cryptography", "no-std"]
rust-version = "1.85"
[features]
# "p256" enables the use of ECDH-NIST-P256 as a KEM
# "p384" enables the use of ECDH-NIST-P384 as a KEM
# "x25519" enables the use of the X25519 as a KEM
# "aes" enables AES-GCM AEAD algorithms (AES-128-GCM and AES-256-GCM)
# "chacha" enables ChaCha20-Poly1305 AEAD algorithm
# "xwing" enables the use of X-Wing hybrid post-quantum KEM
default = ["getrandom", "alloc", "p256", "x25519", "aes", "chacha"]
x25519 = ["dep:x25519-dalek"]
p256 = ["dep:p256"]
p384 = ["dep:p384"]
p521 = ["dep:p521"]
aes = ["dep:aes-gcm"]
chacha = ["dep:chacha20poly1305"]
xwing = ["dep:x-wing"]
# Include allocating methods like open() and seal()
alloc = []
# Enable RNG-less top-level functions
getrandom = ["dep:getrandom"]
# Used to enable known-answer tests. Implies alloc and all other features
kat = ["alloc", "x25519", "p256", "p384", "p521", "xwing"]
hazmat-streaming-enc = []
[dependencies]
aead = { version = "0.6.0-rc.10", default-features = false }
aes-gcm = { version = "=0.11.0-rc.3", default-features = false, features = ["aes"], optional = true }
chacha20poly1305 = { version = "=0.11.0-rc.3", default-features = false, optional = true }
getrandom = { version = "0.4", default-features = false, features = ["sys_rng"], optional = true }
hybrid-array = "0.4"
hkdf = { version = "=0.13.0-rc.5", default-features = false }
rand_core = { version = "0.10.0", default-features = false }
p256 = { version = "0.13", default-features = false, features = [
"arithmetic",
"ecdh",
], optional = true }
p384 = { version = "0.13", default-features = false, features = [
"arithmetic",
"ecdh",
], optional = true }
p521 = { version = "0.13", default-features = false, features = [
"arithmetic",
"ecdh",
], optional = true }
sha2 = { version = "=0.11.0-rc.5", default-features = false }
sha3 = { version = "=0.11.0-rc.7", default-features = false }
subtle = { version = "2.6", default-features = false }
x25519-dalek = { version = "2", default-features = false, features = [
"static_secrets",
], optional = true }
x-wing = { version = "0.1.0-pre.6", optional = true, default-features = false, features = ["hazmat"] }
zeroize = { version = "1", default-features = false, features = [
"zeroize_derive",
] }
[dev-dependencies]
criterion = { version = "0.7", features = ["html_reports"] }
hex = "0.4"
hex-literal = "1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rand = { git = "https://github.com/rust-random/rand.git", rev = "9c98f59e8b042e5c7c714e933e49b384a4ce75a6", features = [ "thread_rng" ] }
[[example]]
name = "client_server"
required-features = ["getrandom", "x25519", "chacha"]
[[example]]
name = "agility"
required-features = ["getrandom", "p256", "p384", "p521", "x25519", "aes", "chacha"]
# Tell docs.rs to build docs with `--all-features` and `--cfg docsrs` (for nightly docs features)
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
# Criteron benches
[[bench]]
name = "benches"
harness = false
required-features = ["getrandom"]
[lib]
bench = false