Skip to main content

Module config

Module config 

Source
Expand description

Configuration types for the PKCS#11 backend.

The backend is configured entirely through the Options map passed to StoreBackend::open. This module names those option keys and parses them into a typed Config.

Structs§

Config
Typed view over the PKCS#11 backend’s open-time options.

Constants§

OPT_PIN
Options key carrying the user PIN. Optional at config time — if absent, callers are expected to prompt the operator and supply the PIN before the first HSM operation that requires it.
OPT_PKCS11_MODULE
Options key naming the PKCS#11 module path. Required: there is no sensible default for the location of a vendor’s .so / .dylib.
OPT_SLOT_ID
Options key naming the HSM slot, as a decimal u64. Required: slot discovery by label is supported, but a concrete slot must still be resolved before opening a session.
OPT_TOKEN_LABEL
Options key naming a token label, used for slot discovery when slot_id is not known in advance. Optional.