neuron-crypto-hardware 0.4.0

Stub crypto provider for PKCS#11 / YubiKey PIV hardware tokens
Documentation

neuron-crypto-hardware

PKCS#11 / YubiKey PIV hardware crypto provider for neuron (stub)

crates.io docs.rs license

Overview

neuron-crypto-hardware will implement CryptoProvider backed by hardware security tokens via the PKCS#11 interface. Supported devices include YubiKey (PIV), HSMs, and any PKCS#11 v2.40-compatible token.

Status: stub. The trait implementation and config types are defined; the PKCS#11 client integration is in progress. The interface is stable.

Usage

[dependencies]
neuron-crypto-hardware = "0.4"
neuron-crypto = "0.4"
use neuron_crypto_hardware::Pkcs11CryptoProvider;
use neuron_crypto::CryptoProvider;
use std::sync::Arc;

let crypto: Arc<dyn CryptoProvider> = Arc::new(Pkcs11CryptoProvider::new(
    "/usr/lib/libykcs11.so",  // PKCS#11 module path
    "01:02:AB",               // key label / CKA_ID
)?);

Part of the neuron workspace

neuron is a composable async agentic AI framework for Rust. See the book for architecture and guides.