[package]
edition = "2021"
rust-version = "1.85"
name = "fips205"
version = "0.5.0"
authors = ["Eric Schorn <eschorn@integritychain.com>"]
build = false
exclude = [
"tests/nist_vectors/*",
"!tests/nist_vectors/SLH-DSA-keyGen-FIPS205/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "FIPS 205: Stateless Hash-Based Digital Signature Standard"
documentation = "https://docs.rs/fips205"
readme = "README.md"
keywords = [
"FIPS205",
"slh-dsa",
"sphincs",
"post-quantum",
"signature",
]
categories = [
"cryptography",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/integritychain/fips205"
[features]
acvp-internal = []
default = [
"default-rng",
"slh-dsa-sha2-128s",
"slh-dsa-shake-128s",
"slh-dsa-sha2-128f",
"slh-dsa-shake-128f",
"slh-dsa-sha2-192s",
"slh-dsa-shake-192s",
"slh-dsa-sha2-192f",
"slh-dsa-shake-192f",
"slh-dsa-sha2-256s",
"slh-dsa-shake-256s",
"slh-dsa-sha2-256f",
"slh-dsa-shake-256f",
]
default-rng = ["rand_core/getrandom"]
slh-dsa-sha2-128f = []
slh-dsa-sha2-128s = []
slh-dsa-sha2-192f = []
slh-dsa-sha2-192s = []
slh-dsa-sha2-256f = []
slh-dsa-sha2-256s = []
slh-dsa-shake-128f = []
slh-dsa-shake-128s = []
slh-dsa-shake-192f = []
slh-dsa-shake-192s = []
slh-dsa-shake-256f = []
slh-dsa-shake-256s = []
[lib]
name = "fips205"
path = "src/lib.rs"
[[test]]
name = "messages"
path = "tests/messages.rs"
[[test]]
name = "negative"
path = "tests/negative.rs"
[[test]]
name = "py_vectors"
path = "tests/py_vectors.rs"
[[test]]
name = "sloth_kat"
path = "tests/sloth_kat.rs"
[[bench]]
name = "benchmark"
path = "benches/benchmark.rs"
harness = false
required-features = [
"default-rng",
"slh-dsa-sha2-128s",
"slh-dsa-shake-128s",
"slh-dsa-sha2-128f",
"slh-dsa-shake-128f",
"slh-dsa-sha2-192s",
"slh-dsa-shake-192s",
"slh-dsa-sha2-192f",
"slh-dsa-shake-192f",
"slh-dsa-sha2-256s",
"slh-dsa-shake-256s",
"slh-dsa-sha2-256f",
"slh-dsa-shake-256f",
]
[dependencies.rand_core]
version = "0.6.4"
default-features = false
[dependencies.sha2]
version = "0.10.8"
default-features = false
[dependencies.sha3]
version = "0.10.9"
features = ["zeroize"]
default-features = false
[dependencies.zeroize]
version = "1.6.0"
features = ["zeroize_derive"]
default-features = false
[dev-dependencies.aes]
version = "0.8.4"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.flate2]
version = "1.0.27"
[dev-dependencies.hex]
version = "0.4.3"
[dev-dependencies.rand_chacha]
version = "0.3.1"
[dev-dependencies.serde_json]
version = "1.0"
[profile.bench]
opt-level = 3
lto = true
codegen-units = 1
debug = 2
debug-assertions = false
overflow-checks = false
incremental = false
[profile.dev]
opt-level = 3
[profile.release]
opt-level = 3
lto = true
codegen-units = 1