Registry / crypto / cryptoki

cryptoki

JSON →
library0.12.0rscratesunverified

Rust-native wrapper around the PKCS #11 API for cryptographic tokens.

# Cargo.toml [dependencies] cryptoki = "0.12.0"
INSTALL
IMPORT
SIG · CRYPTOKI
C
cryptoki
cryptorustv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Session
use cryptoki::session::Session;

Opens a session with a PKCS#11 token.

use cryptoki::session::Session; fn main() -> Result<(), Box<dyn std::error::Error>> { // Requires a PKCS#11 module Ok(()) }
Debug
Known issues
gotchaRequires a PKCS#11 module (shared library) to be loaded at runtime.
fix
Ensure the PKCS#11 module path is provided via environment or configuration.
affects: >=0.1.0
Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
cryptoki — cargo add cryptoki · libregistry