[package]
edition = "2021"
rust-version = "1.77"
name = "cryptoki"
version = "0.12.0"
authors = ["Contributors to the Parsec project"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust-native wrapper around the PKCS #11 API"
documentation = "https://docs.rs/crate/cryptoki"
readme = "README.md"
keywords = [
"pkcs11",
"cryptoki",
"hsm",
]
categories = [
"api-bindings",
"external-ffi-bindings",
"cryptography",
"hardware-support",
]
license = "Apache-2.0"
repository = "https://github.com/parallaxsecond/rust-cryptoki"
[features]
generate-bindings = ["cryptoki-sys/generate-bindings"]
serde = ["secrecy/serde"]
[lib]
name = "cryptoki"
path = "src/lib.rs"
[[example]]
name = "generate_key_pair"
path = "examples/generate_key_pair.rs"
[[example]]
name = "thread_local_session"
path = "examples/thread_local_session.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "ml_dsa"
path = "tests/ml_dsa.rs"
[[test]]
name = "ml_kem"
path = "tests/ml_kem.rs"
[[test]]
name = "slh_dsa"
path = "tests/slh_dsa.rs"
[[test]]
name = "wycheproof"
path = "tests/wycheproof.rs"
[dependencies.bitflags]
version = "2.10.0"
[dependencies.cryptoki-sys]
version = "0.5.0"
[dependencies.libloading]
version = "0.8.9"
[dependencies.log]
version = "0.4.28"
[dependencies.secrecy]
version = "0.10.3"
[dev-dependencies.hex]
version = "0.4.3"
[dev-dependencies.serial_test]
version = "3.2.0"
[dev-dependencies.testresult]
version = "0.4.1"
[dev-dependencies.wycheproof]
version = "0.6.0"
features = ["aead"]