[package]
edition = "2024"
rust-version = "1.85"
name = "dsa"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Pure Rust implementation of the Digital Signature Algorithm (DSA) as specified
in FIPS 186-4 (Digital Signature Standard), providing RFC6979 deterministic
signatures as well as support for added entropy
"""
homepage = "https://github.com/RustCrypto/signatures/tree/master/dsa"
readme = "README.md"
keywords = [
"crypto",
"nist",
"signature",
]
categories = [
"cryptography",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/signatures"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["pkcs8"]
getrandom = ["crypto-common/getrandom"]
hazmat = []
[lib]
name = "dsa"
path = "src/lib.rs"
[[example]]
name = "export"
path = "examples/export.rs"
required-features = [
"hazmat",
"pkcs8",
]
[[example]]
name = "generate"
path = "examples/generate.rs"
required-features = ["hazmat"]
[[example]]
name = "sign"
path = "examples/sign.rs"
required-features = [
"hazmat",
"pkcs8",
]
[[test]]
name = "components"
path = "tests/components.rs"
[[test]]
name = "deterministic"
path = "tests/deterministic.rs"
[[test]]
name = "proptest"
path = "tests/proptest.rs"
[[test]]
name = "signature"
path = "tests/signature.rs"
[[test]]
name = "signing_key"
path = "tests/signing_key.rs"
[[test]]
name = "verifying_key"
path = "tests/verifying_key.rs"
[dependencies.crypto-bigint]
version = "0.7"
features = [
"alloc",
"zeroize",
]
default-features = false
[dependencies.crypto-common]
version = "0.2"
features = ["rand_core"]
default-features = false
[dependencies.crypto-primes]
version = "0.7"
default-features = false
[dependencies.der]
version = "0.8"
features = ["alloc"]
[dependencies.digest]
version = "0.11"
[dependencies.pkcs8]
version = "0.11"
features = ["alloc"]
optional = true
default-features = false
[dependencies.rfc6979]
version = "0.6"
[dependencies.sha2]
version = "0.11"
default-features = false
[dependencies.signature]
version = "3"
features = [
"alloc",
"digest",
"rand_core",
]
default-features = false
[dependencies.zeroize]
version = "1"
features = ["alloc"]
default-features = false
[dev-dependencies.chacha20]
version = "0.10"
features = ["rng"]
[dev-dependencies.der]
version = "0.8"
features = ["derive"]
[dev-dependencies.getrandom]
version = "0.4"
features = ["sys_rng"]
[dev-dependencies.hex]
version = "0.4"
[dev-dependencies.hex-literal]
version = "1"
[dev-dependencies.pkcs8]
version = "0.11"
features = ["pem"]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rand_core]
version = "0.10"
[dev-dependencies.sha1]
version = "0.11"
[lints.clippy]
as_conversions = "warn"
borrow_as_ptr = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
checked_conversions = "warn"
from_iter_instead_of_collect = "warn"
implicit_saturating_sub = "warn"
integer_division_remainder_used = "warn"
manual_assert = "warn"
map_unwrap_or = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
mod_module_files = "warn"
must_use_candidate = "warn"
needless_range_loop = "allow"
ptr_as_ptr = "warn"
redundant_closure_for_method_calls = "warn"
ref_as_ptr = "warn"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
trivially_copy_pass_by_ref = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unwrap_used = "warn"
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "warn"
unused_qualifications = "warn"