# 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 = "tpm2-crypto"
version = "0.20.1"
authors = ["Jarkko Sakkinen <jarkko@kernel.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "TPM 2.0 cryptographic routines"
homepage = "https://gitlab.com/tpm-protocol/tpm2-crypto"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://gitlab.com/tpm-protocol/tpm2-crypto"

[lib]
name = "tpm2_crypto"
path = "src/lib.rs"

[[test]]
name = "ecc"
path = "tests/ecc.rs"

[[test]]
name = "hmac"
path = "tests/hmac.rs"
harness = true

[[test]]
name = "kdf"
path = "tests/kdf.rs"

[[test]]
name = "public"
path = "tests/public.rs"
harness = true

[[test]]
name = "rsa"
path = "tests/rsa.rs"

[dependencies.num-bigint]
version = "0.4"

[dependencies.num-traits]
version = "0.2"

[dependencies.openssl]
version = "0.10"

[dependencies.rand]
version = "0.10"

[dependencies.strum]
version = "0.28"
features = ["derive"]

[dependencies.tpm2-protocol]
version = "0.20.0"

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

[dev-dependencies.rstest]
version = "0.26"
