Skip to main content

Module error

Module error 

Source
Expand description

Error translation between cryptoki’s error type and the Store’s Error.

The PKCS#11 backend surfaces failures through the Store’s existing error variants rather than introducing a parallel PKCS#11-specific enum. The mapping is:

cryptoki::error::ErrorStore variant
anything carrying a “value not found”ValueNotFound
signal (object handle lookup misses)
everything elseWrapped

The Wrapped message carries the cryptoki Display string so the operator sees the underlying PKCS#11 return code.

Traits§

IntoStoreError
Translate a cryptoki failure into a Store Error.