New wire-independent `src/ratchet.rs` + `tests/ratchet.rs`: KDF_RK/KDF_CK as in the Signal spec, symmetric ratchet, DH ratchet, skipped-key store with the MAX_SKIP / MAX_SKIPPED_KEYS bounds, versioned state serialization and zeroize of every superseded secret. Initiation gate: per-direction chains seeded by ratchet-key ordering (option (a)), so both peers can build a sending chain before either has received, and a single deterministic tie-break (lower ratchet key rotates first) keeps exactly one rotation in flight. Documented under "Initiation and convergence" and covered by both_peers_send_first_converges, which fails on a crossing rotation. Adds hkdf 0.12 + hmac 0.12 (0.13 pulls digest 0.11 and will not build against sha2 0.10) and regenerates crates/onionwire-sdk/Cargo.lock.
57 lines
1.9 KiB
TOML
57 lines
1.9 KiB
TOML
[package]
|
|
name = "onionwire"
|
|
version = "0.2.1"
|
|
edition = "2024"
|
|
rust-version = "1.91"
|
|
description = "Lean Tor messenger: Arti in-process, identity=pubkey, onion=locator. No XMPP."
|
|
license = "MIT"
|
|
publish = false
|
|
repository = "https://github.com/sirius0xdev/onionwire"
|
|
|
|
# The Linux TUI build is unchanged: `default` keeps Arti's native-tls
|
|
# (OpenSSL) backend exactly as before, and ratatui remains a normal
|
|
# dependency so `src/tui.rs` is untouched.
|
|
#
|
|
# Android has no OpenSSL in the NDK, so the SDK crate depends on this crate
|
|
# with `default-features = false, features = ["rustls"]`. Arti marks these two
|
|
# backends non-additive, so exactly one may be selected per build graph — hence
|
|
# exposing them as crate features.
|
|
[features]
|
|
default = ["native-tls"]
|
|
native-tls = ["arti-client/native-tls"]
|
|
rustls = ["arti-client/rustls"]
|
|
|
|
[dependencies]
|
|
arti-client = { version = "0.46", default-features = false, features = [
|
|
"tokio",
|
|
"onion-service-client",
|
|
"onion-service-service",
|
|
"compression",
|
|
] }
|
|
futures = "0.3"
|
|
safelog = "0.9"
|
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
|
rand = "0.8"
|
|
rusqlite = { version = "0.36", features = ["bundled-sqlcipher-vendored-openssl"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "net"] }
|
|
tor-cell = "0.46"
|
|
tor-hsservice = "0.46"
|
|
tor-rtcompat = { version = "0.46", features = ["tokio"] }
|
|
ratatui = { version = "0.30.2", default-features = false, features = ["crossterm"] }
|
|
x25519-dalek = { version = "2", features = ["static_secrets"] }
|
|
snow = "0.10"
|
|
serde_json = "1"
|
|
hkdf = "0.12"
|
|
hmac = "0.12"
|
|
argon2 = "0.5"
|
|
chacha20poly1305 = "0.10"
|
|
sha3 = "0.10"
|
|
sha2 = "0.10"
|
|
md-5 = "0.10"
|
|
rpassword = "7"
|
|
zeroize = { version = "1", features = ["derive"] }
|
|
qrcode = { version = "0.14", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|