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 = "tor-hscrypto"
version = "0.37.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2024"
rust-version = "1.86"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Basic onion service cryptography types used by Aerti"
keywords = ["tor", "arti", "cryptography"]
categories = ["cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
[features]
default = []
memquota-memcost = [
"tor-memquota",
"tor-units/memquota-memcost",
"tor-llcrypto/memquota-memcost",
]
ope = ["cipher", "zeroize"]
# Onion service proof of work schemes
hs-pow-full = ["arrayvec", "blake2", "equix", "__is_experimental"]
full = [
"memquota-memcost",
"ope",
"safelog/full",
"tor-basic-utils/full",
"tor-bytes/full",
"tor-llcrypto/full",
"tor-units/full",
"tor-error/full",
"equix?/full",
"tor-memquota?/full",
"tor-key-forge/full",
]
experimental = ["hs-pow-full"]
__is_experimental = []
[dependencies]
arrayvec = { version = "0.7.4", optional = true }
blake2 = { version = "0.10.6", optional = true }
cipher = { version = "0.4.1", features = ["zeroize"], optional = true }
data-encoding = "2.3.1" # want MSVC i686 build fix, data-encoding/issues/33
derive-deftly = { version = "1.5.0" }
derive_more = { version = "2.0.1", features = ["full"] }
digest = "0.10.0"
equix = { path = "../equix", version = "0.5.0", optional = true }
hex = "0.4"
humantime = "2"
itertools = "0.14.0"
paste = "1"
rand = "0.9.1"
safelog = { path = "../safelog", version = "0.7.0" }
serde = { version = "1.0.103", features = ["derive"] }
signature = "2"
subtle = "2"
thiserror = "2"
tor-basic-utils = { path = "../tor-basic-utils", version = "0.37.0" }
tor-bytes = { version = "0.37.0", path = "../tor-bytes" }
tor-error = { version = "0.37.0", path = "../tor-error" }
tor-key-forge = { version = "0.37.0", path = "../tor-key-forge" }
tor-llcrypto = { version = "0.37.0", path = "../tor-llcrypto", features = ["hsv3-client", "hsv3-service"] }
tor-memquota = { version = "0.37.0", path = "../tor-memquota", default-features = false, optional = true }
tor-units = { path = "../tor-units", version = "0.37.0" }
void = "1"
zeroize = { version = "1", optional = true }
[dev-dependencies]
hex-literal = "1.0"
tor-basic-utils = { version = "0.37.0", path = "../tor-basic-utils" }
[[test]]
name = "pow_v1_vectors"
required-features = ["hs-pow-full"]
|