413dbaa279
With legacy_compatibility, ed25519-dalek checks only the top bits of S, so S + l is accepted: a second encoding of the Ed25519 half, and the malleability promise of verify_strict is gone. Feature unification lets any crate in the final binary turn it on. deny.toml now bans it for ed25519-dalek and curve25519-dalek, and ed25519-dalek/hazmat with it (cargo-deny 0.20 [[bans.features]]). Checked: bans ok as committed; enabling legacy_compatibility on ed25519-dalek in Cargo.toml fails `cargo deny --offline check bans` for both crates, and enabling hazmat fails it for ed25519-dalek (reverted).
48 lines
1.1 KiB
TOML
48 lines
1.1 KiB
TOML
# cargo deny configuration for Arcanum (mandatory test 6). Run: cargo deny check
|
|
|
|
[graph]
|
|
all-features = true
|
|
|
|
[advisories]
|
|
# Every RustSec advisory, including unmaintained and unsound crates, is an error.
|
|
version = 2
|
|
yanked = "deny"
|
|
ignore = []
|
|
|
|
[licenses]
|
|
version = 2
|
|
# Licences of the dependency tree; each was checked against the crates' own LICENSE files.
|
|
allow = [
|
|
"Apache-2.0",
|
|
"MIT",
|
|
"BSD-3-Clause",
|
|
"Unicode-3.0",
|
|
]
|
|
confidence-threshold = 0.9
|
|
|
|
|
|
[licenses.private]
|
|
ignore = true
|
|
|
|
[bans]
|
|
multiple-versions = "deny"
|
|
wildcards = "deny"
|
|
highlight = "all"
|
|
|
|
# QA S-10: `legacy_compatibility` makes ed25519-dalek accept a non-reduced S (S + l), a second
|
|
# encoding of every Ed25519 half, and is enabled for the whole binary by any crate that asks for it.
|
|
# `hazmat` exposes raw ExpandedSecretKey signing. Neither may reach Arcanum's graph.
|
|
[[bans.features]]
|
|
crate = "ed25519-dalek"
|
|
deny = ["legacy_compatibility", "hazmat"]
|
|
|
|
[[bans.features]]
|
|
crate = "curve25519-dalek"
|
|
deny = ["legacy_compatibility"]
|
|
|
|
[sources]
|
|
unknown-registry = "deny"
|
|
unknown-git = "deny"
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
|
allow-git = []
|