[package] name = "tor-hscrypto" version = "0.41.0" authors = ["The Tor Project, Inc.", "Nick Mathewson "] edition = "2024" rust-version = "1.89" 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", "web-time-compat/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.6.0" } derive_more = { version = "2.0.1", features = ["full"] } digest = "0.10.0" equix = { path = "../equix", version = "0.6.0", optional = true } hex = "0.4" humantime = "2" itertools = "0.14.0" paste = "1.0.3" rand = "0.9.1" safelog = { path = "../safelog", version = "0.8.1" } serde = { version = "1.0.103", features = ["derive"] } signature = "2" subtle = "2" thiserror = "2" tor-basic-utils = { path = "../tor-basic-utils", version = "0.41.0" } tor-bytes = { version = "0.41.0", path = "../tor-bytes" } tor-error = { version = "0.41.0", path = "../tor-error" } tor-key-forge = { version = "0.41.0", path = "../tor-key-forge" } tor-llcrypto = { version = "0.41.0", path = "../tor-llcrypto", features = ["hsv3-client", "hsv3-service"] } tor-memquota = { version = "0.41.0", path = "../tor-memquota", default-features = false, optional = true } tor-units = { path = "../tor-units", version = "0.41.0" } void = "1" web-time-compat = { path = "../web-time-compat", version = "0.1.0" } zeroize = { version = "1", optional = true } [dev-dependencies] hex-literal = "1.0" tor-basic-utils = { version = "0.41.0", path = "../tor-basic-utils" } [[test]] name = "pow_v1_vectors" required-features = ["hs-pow-full"] [package.metadata.docs.rs] all-features = true