[package]
edition = "2024"
rust-version = "1.96"
name = "hiss"
version = "0.1.0"
authors = ["Nicolas Di Prima <nicolas@primetype.co.uk>"]
build = false
exclude = ["/demo"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Static, type-level Noise Protocol Framework with pluggable hardware-backed crypto."
homepage = "https://github.com/primetype/hiss"
documentation = "https://docs.rs/hiss"
readme = "README.md"
keywords = [
"noise",
"handshake",
"secure-enclave",
"x25519",
"keychain",
]
categories = [
"cryptography",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/primetype/hiss"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
async-io = [
"dep:tokio",
"tokio/io-util",
]
default = ["x25519-cryptoxide"]
x25519-cryptoxide = ["cryptoxide/x25519"]
[lib]
name = "hiss"
path = "src/lib.rs"
[[example]]
name = "tcp_xx_channel"
path = "examples/tcp_xx_channel.rs"
required-features = ["async-io"]
[[test]]
name = "noise_kat"
path = "tests/noise_kat.rs"
[[test]]
name = "noise_negative"
path = "tests/noise_negative.rs"
[[test]]
name = "scripted_rng_smoke"
path = "tests/scripted_rng_smoke.rs"
[[test]]
name = "snow_diag"
path = "tests/snow_diag.rs"
[[test]]
name = "snow_interop"
path = "tests/snow_interop.rs"
[[test]]
name = "snow_interop_25519"
path = "tests/snow_interop_25519.rs"
[[test]]
name = "x448_handshake"
path = "tests/x448_handshake.rs"
[[bench]]
name = "noise"
path = "benches/noise.rs"
harness = false
[dependencies.cryptoxide]
version = "0.5.1"
features = [
"chacha",
"poly1305",
"blake2",
"sha2",
"hmac",
"ed25519",
]
default-features = false
[dependencies.eccoxide]
version = "0.4"
features = [
"p256r1",
"table",
"x25519",
"x448",
]
default-features = false
[dependencies.hex]
version = "0.4"
[dependencies.packtool]
version = "0.4"
[dependencies.rand_core]
version = "0.9"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.50"
optional = true
default-features = false
[dev-dependencies.base64]
version = "0.22"
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.rand]
version = "0.9"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.snow]
version = "0.10.0"
features = [
"default-resolver",
"use-p256",
"use-chacha20poly1305",
"use-blake2",
]
[dev-dependencies.tempfile]
version = "3.12"
[dev-dependencies.tokio]
version = "1.50"
features = [
"macros",
"rt",
"rt-multi-thread",
"net",
"signal",
"time",
"sync",
"io-util",
"fs",
]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation]
version = "0.10"
features = []
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.security-framework]
version = "3.5"
features = ["OSX_10_15"]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.security-framework-sys]
version = "2.15"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.tokio]
version = "1.50"
features = ["rt"]
default-features = false