pub enum TpmCryptoError {
InvalidEccCurve,
InvalidEccParameters,
InvalidHash,
InvalidKeyBits(u16),
InvalidObjectType,
InvalidRsaParameters,
KeyIsEmpty,
Marshal(TpmProtocolError),
OperationFailed,
OutOfMemory,
PermissionDenied,
Unmarshal(TpmProtocolError),
}Expand description
The top-level error type for cryptographic operations.
Variants§
InvalidEccCurve
ECC curve is not supported in the context of use.
InvalidEccParameters
Invalid ECC public parameters.
InvalidHash
Hash algorithm is not supported in the context of use.
InvalidKeyBits(u16)
Invalid RSA key bits.
InvalidObjectType
Invalid object type.
InvalidRsaParameters
Invalid RSA public parameters.
KeyIsEmpty
A zero-length key was provided.
Marshal(TpmProtocolError)
Marshaling a TPM protocol encoded object failed.
OperationFailed
A cryptographic operation failed.
OutOfMemory
Not enough memory available.
PermissionDenied
The provided HMAC does not match to the expected value.
Unmarshal(TpmProtocolError)
Unmarshaling a TPM protocol encoded object failed.
Trait Implementations§
Source§impl Debug for TpmCryptoError
impl Debug for TpmCryptoError
Source§impl Display for TpmCryptoError
impl Display for TpmCryptoError
Source§impl Error for TpmCryptoError
impl Error for TpmCryptoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TpmCryptoError
impl PartialEq for TpmCryptoError
impl Eq for TpmCryptoError
impl StructuralPartialEq for TpmCryptoError
Auto Trait Implementations§
impl Freeze for TpmCryptoError
impl RefUnwindSafe for TpmCryptoError
impl Send for TpmCryptoError
impl Sync for TpmCryptoError
impl Unpin for TpmCryptoError
impl UnwindSafe for TpmCryptoError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more