-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
78 lines (71 loc) · 3.61 KB
/
Copy pathCargo.toml
File metadata and controls
78 lines (71 loc) · 3.61 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
[package]
name = "hpke-ng"
version = "0.2.0"
edition = "2024"
rust-version = "1.96"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/symbolicsoft/hpke-ng"
description = "Clean, fast, RFC 9180 HPKE implementation."
readme = "README.md"
keywords = ["hpke", "crypto", "rfc9180", "encryption"]
categories = ["cryptography", "no-std"]
exclude = ["tests/test_vectors.json", "tests/test_vectors_k256.json"]
[dependencies]
zeroize = { version = "1.9", default-features = false, features = ["derive", "alloc"] }
subtle = { version = "2.6", default-features = false }
rand_core = { version = "0.10", default-features = false }
hkdf = { version = "0.13", default-features = false }
sha2 = { version = "0.11", default-features = false }
shake = { version = "0.1", default-features = false, optional = true }
aead = { version = "0.6", default-features = false, features = ["alloc"] }
aes-gcm = { version = "0.11", default-features = false, features = ["aes", "alloc", "zeroize"] }
chacha20poly1305 = { version = "0.11", default-features = false, features = ["alloc", "zeroize"] }
aes = { version = "0.9", default-features = false, features = ["zeroize"] }
ghash = { version = "0.6", default-features = false, features = ["zeroize"] }
polyval = { version = "0.7", default-features = false, features = ["zeroize"] }
poly1305 = { version = "0.9", default-features = false, features = ["zeroize"] }
x25519-dalek = { version = "3", default-features = false, features = ["zeroize", "static_secrets"] }
ed448-goldilocks = { version = "0.14.0-pre.12", default-features = false }
p256 = { version = "0.14", default-features = false, features = ["arithmetic", "ecdh"] }
p384 = { version = "0.14", default-features = false, features = ["arithmetic", "ecdh"] }
p521 = { version = "0.14", default-features = false, features = ["arithmetic", "ecdh"] }
k256 = { version = "0.14", default-features = false, features = ["arithmetic", "ecdh"] }
ml-kem = { version = "0.3.2", default-features = false, features = ["zeroize"], optional = true }
x-wing = { version = "0.1.0", default-features = false, features = ["zeroize"], optional = true }
[features]
default = ["std"]
# aes-gcm and chacha20poly1305 0.11 no longer have `std` features; their
# error types implement `core::error::Error` unconditionally.
std = ["subtle/std"]
pq = ["dep:ml-kem", "dep:x-wing", "dep:shake"]
comparative = ["pq"]
hazmat-differential = []
hazmat-kat-internals = []
[dev-dependencies]
hpke-rs = { version = "0.7", features = ["std", "rustcrypto", "hpke-test", "hpke-test-prng", "hazmat"] }
hpke-rs-rust-crypto = { version = "0.7", features = ["experimental"] }
hpke-rs-crypto = "0.7"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
trybuild = { version = "1", features = ["diff"] }
rand = "0.10"
rand_chacha = "0.10"
criterion = { version = "0.8", features = ["html_reports"] }
hex = "0.4"
hpke = { version = "0.14", default-features = false, features = ["x25519", "nistp", "aes", "chacha", "alloc", "mlkem"] }
[profile.bench]
lto = "thin"
codegen-units = 1
[[test]]
name = "kat"
required-features = ["hazmat-kat-internals"]
[[test]]
name = "compile_fail"
required-features = ["pq", "hazmat-kat-internals"]
[[bench]]
name = "bench"
harness = false
[[bench]]
name = "comparative"
harness = false
required-features = ["comparative"]