# 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 = "2024"
rust-version = "1.85"
name = "dsa"
version = "0.7.0-rc.8"
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"]
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.0-rc.13"
features = [
    "alloc",
    "zeroize",
]
default-features = false

[dependencies.crypto-primes]
version = "0.7.0-pre.5"
default-features = false

[dependencies.der]
version = "0.8.0-rc.10"
features = ["alloc"]

[dependencies.digest]
version = "0.11.0-rc.5"

[dependencies.pkcs8]
version = "0.11.0-rc.8"
features = ["alloc"]
optional = true
default-features = false

[dependencies.rfc6979]
version = "0.5.0-rc.3"

[dependencies.sha2]
version = "0.11.0-rc.3"
default-features = false

[dependencies.signature]
version = "3.0.0-rc.6"
features = [
    "alloc",
    "digest",
    "rand_core",
]
default-features = false

[dependencies.zeroize]
version = "1"
features = ["alloc"]
default-features = false

[dev-dependencies.chacha20]
version = "0.10.0-rc.6"
features = ["rng"]

[dev-dependencies.der]
version = "0.8.0-rc.10"
features = ["derive"]

[dev-dependencies.getrandom]
version = "0.4.0-rc.0"
features = ["sys_rng"]

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.hex-literal]
version = "1"

[dev-dependencies.pkcs8]
version = "0.11.0-rc.8"
features = ["pem"]
default-features = false

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

[dev-dependencies.sha1]
version = "0.11.0-rc.2"
