hardware-rust-crypto 1.0.1

Hardware-only AES-256-GCM and AES-256-GCM-SIV AEAD plus AES-256-CTR key/nonce generation (AES-NI/PCLMULQDQ, ARMv8 AES/PMULL), with compact, caller-placeable, zeroized key state.
Documentation
# 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 = "2021"
rust-version = "1.88"
name = "hardware-rust-crypto"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hardware-only AES-256-GCM and AES-256-GCM-SIV AEAD plus AES-256-CTR key/nonce generation (AES-NI/PCLMULQDQ, ARMv8 AES/PMULL), with compact, caller-placeable, zeroized key state."
readme = "README.md"
keywords = [
    "aes-gcm",
    "aes",
    "aead",
    "encryption",
    "hardware",
]
categories = ["cryptography"]
license = "Apache-2.0"
repository = "https://github.com/godaddy/hardware-rust-crypto"

[features]
cpu-rng-reseed = []
ct-verify = []
default = ["cpu-rng-reseed"]
hazmat-explicit-nonce = []
saw-verify = []

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

[[example]]
name = "assert_hardware"
path = "examples/assert_hardware.rs"

[[example]]
name = "ct_verify"
path = "examples/ct_verify.rs"

[[example]]
name = "rng_dump"
path = "examples/rng_dump.rs"

[[example]]
name = "state_size"
path = "examples/state_size.rs"

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "aes_gcm"
path = "benches/aes_gcm.rs"
harness = false

[[bench]]
name = "aes_gcm_siv"
path = "benches/aes_gcm_siv.rs"
harness = false

[[bench]]
name = "random"
path = "benches/random.rs"
harness = false

[dependencies.getrandom]
version = "0.3"

[dependencies.subtle]
version = "2.6"
default-features = false

[dependencies.zeroize]
version = "1.8"

[dev-dependencies.aes-gcm]
version = "0.10"
features = ["aes"]

[dev-dependencies.aes-gcm-siv]
version = "0.11"
features = ["aes"]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.openssl]
version = "0.10"
features = ["vendored"]

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

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.rand_chacha]
version = "0.9"

[dev-dependencies.ring]
version = "0.17"

[dev-dependencies.salsa20]
version = "0.10"

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.clippy]
all = "warn"
expect_used = "warn"
panic = "warn"
pedantic = "warn"
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(kani)",
    "cfg(hax)",
]