-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
55 lines (49 loc) · 1.72 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
[package]
name = "bitcoin-hpke"
repository = "https://github.com/payjoin/bitcoin-hpke"
documentation = "https://docs.rs/bitcoin-hpke"
description = "An implementation of the HPKE hybrid encryption standard (RFC 9180) on libsecp256k1"
readme = "README.md"
version = "0.13.0"
authors = ["Dan Gould <[email protected]>"]
edition = "2021"
license = "MIT/Apache-2.0"
keywords = ["cryptography", "encryption", "aead", "secp256k1", "bitcoin"]
categories = ["cryptography", "no-std"]
[features]
default = ["alloc", "secp"]
secp = ["secp256k1/global-context", "secp256k1/rand-std"]
# Include allocating methods like open() and seal()
alloc = []
# Includes an implementation of `std::error::Error` for `HpkeError`. Also does what `alloc` does.
std = []
[dependencies]
aead = "0.5"
secp256k1 = { version = "0.29", optional = true }
chacha20poly1305 = "0.10"
generic-array = { version = "0.14", default-features = false }
digest = "0.10"
hkdf = "0.12"
hmac = "0.12"
rand_core = { version = "0.6", default-features = false }
sha2 = { version = "0.10", default-features = false }
subtle = { version = "2.6", default-features = false }
zeroize = { version = "1", default-features = false, features = ["zeroize_derive"] }
[dev-dependencies]
aes-gcm = "0.10"
criterion = { version = "0.4", features = ["html_reports"] }
hex = "0.4"
hex-literal = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rand = { version = "0.8", default-features = false, features = ["getrandom", "std_rng"] }
# 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
[lib]
bench = false