nox-crypto 0.1.0

Mixnet cryptography: Sphinx packets, SURBs, PoW, X25519 ECDH
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "nox-crypto"
version = "0.1.0"
authors = ["Hisoka IO"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mixnet cryptography: Sphinx packets, SURBs, PoW, X25519 ECDH"
readme = false
license = "Apache-2.0"
repository = "https://github.com/hisoka-io/nox"

[features]
default = ["rayon-pow"]
hop-metrics = []
rayon-pow = ["dep:rayon"]

[lib]
name = "nox_crypto"
path = "src/lib.rs"

[[test]]
name = "crypto_properties"
path = "tests/crypto_properties.rs"

[[test]]
name = "hybrid_sphinx_properties"
path = "tests/hybrid_sphinx_properties.rs"

[[bench]]
name = "crypto_bench"
path = "benches/crypto_bench.rs"
harness = false

[[bench]]
name = "pow_bench"
path = "benches/pow_bench.rs"
harness = false

[[bench]]
name = "sphinx_bench"
path = "benches/sphinx_bench.rs"
harness = false

[[bench]]
name = "surb_bench"
path = "benches/surb_bench.rs"
harness = false

[dependencies.blake3]
version = "1.5"

[dependencies.chacha20]
version = "0.9"

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.curve25519-dalek]
version = "4.1"
features = ["rand_core"]

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.rand]
version = "0.8"

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde-big-array]
version = "0.5"

[dependencies.sha2]
version = "0.10"
features = ["asm"]

[dependencies.subtle]
version = "2.6"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.x25519-dalek]
version = "2.0.0"
features = [
    "static_secrets",
    "serde",
]

[dependencies.zeroize]
version = "1.8"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1.6.0"

[dev-dependencies.serde_json]
version = "1"

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_link_with_quotes = "allow"
expect_used = "warn"
items_after_statements = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
needless_pass_by_value = "allow"
panic = "warn"
return_self_not_must_use = "allow"
similar_names = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
unused_self = "allow"
unwrap_used = "warn"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1