89b5329f06
X-Wing is composed from ml-kem, x25519-dalek, sha3 and shake and matches the draft's vectors. The PSK comes from a mutual exchange (each peer encapsulates to the other, QA A-15) bound to the full transcript in Arcanum's own HKDF layer (QA D-QA-1). Low-order X25519 values are refused. Deterministic entry points sit behind the off-by-default hazmat feature, enabled only for the tests.
46 lines
2.1 KiB
TOML
46 lines
2.1 KiB
TOML
[package]
|
|
name = "arcanum"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.88"
|
|
license = "CPAL-1.0"
|
|
description = "Hybrid post-quantum key exchange (X-Wing: ML-KEM-768 + X25519), key schedule, WireGuard PSK derivation and sealing for the Domi ecosystem"
|
|
repository = "https://gitea.marek-novak.cz/mnovak/arcanum"
|
|
readme = "README.md"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
# Primitives: every one from a vetted crate, none written here (docs/01_arcanum.md).
|
|
ml-kem = { version = "=0.3.4", default-features = false, features = ["zeroize"] }
|
|
x25519-dalek = { version = "=3.0.0", default-features = false, features = ["static_secrets", "zeroize"] }
|
|
sha3 = { version = "0.12", default-features = false, features = ["zeroize"] }
|
|
shake = { version = "0.1", default-features = false, features = ["zeroize"] }
|
|
sha2 = { version = "0.11", default-features = false, features = ["zeroize"] }
|
|
hkdf = { version = "0.13", default-features = false }
|
|
hmac = { version = "0.13", default-features = false, features = ["zeroize"] }
|
|
chacha20poly1305 = { version = "0.11", default-features = false, features = ["alloc", "zeroize"] }
|
|
rand_core = { version = "0.10", default-features = false }
|
|
zeroize = { version = "1.8", default-features = false, features = ["alloc", "zeroize_derive"] }
|
|
|
|
[features]
|
|
# Deterministic entry points (`_derand`, `from_seed`) for the known-answer tests. Off by default;
|
|
# never enable it in a release build (tests/feature_hygiene.rs checks the normal dependency graph).
|
|
hazmat = []
|
|
|
|
[dev-dependencies]
|
|
# The tests enable `hazmat` on the crate itself; dev-dependencies never reach a normal build.
|
|
arcanum = { path = ".", features = ["hazmat"] }
|
|
# Reference implementation for the differential test only; never linked into the library.
|
|
x-wing = { version = "=0.1.1" }
|
|
chacha20 = { version = "0.10", default-features = false, features = ["rng"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
hex = "0.4"
|
|
sha2 = "0.11"
|
|
|
|
# ML-KEM in a debug build is slow; the byte-flip tests run thousands of exchanges.
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
[profile.test.package."*"]
|
|
opt-level = 2
|