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::Error | Store variant |
|---|---|
| anything carrying a “value not found” | ValueNotFound |
| signal (object handle lookup misses) | |
| everything else | Wrapped |
The Wrapped message carries the cryptoki Display string so the
operator sees the underlying PKCS#11 return code.
Traits§
- Into
Store Error - Translate a
cryptokifailure into a StoreError.