Enum aws_nitro_enclaves_cose::error::CoseError
source · pub enum CoseError {
EntropyError(Box<dyn Error>),
HashingError(Box<dyn Error>),
SignatureError(Box<dyn Error>),
UnimplementedError,
UnsupportedError(String),
UnverifiedSignature,
SpecificationError(String),
SerializationError(Error),
TagError(Option<u64>),
EncryptionError(Box<dyn Error>),
}
Expand description
Aggregation of all error types returned by this library
Variants§
EntropyError(Box<dyn Error>)
Failed to generate random bytes
HashingError(Box<dyn Error>)
Computation of a cryptographic hash failed
SignatureError(Box<dyn Error>)
Signature could not be performed due to OpenSSL error.
UnimplementedError
This feature is not yet fully implemented according to the spec.
UnsupportedError(String)
This specific configuration is not supported, although the spec allows it.
UnverifiedSignature
Could not verify signature.
SpecificationError(String)
Deserialized structure does not respect the COSE specification.
SerializationError(Error)
Error while serializing or deserializing structures.
TagError(Option<u64>)
Tag is missing or incorrect.
EncryptionError(Box<dyn Error>)
Encryption could not be performed due to OpenSSL error.
Trait Implementations§
source§impl Error for CoseError
impl Error for CoseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for CoseError
impl !RefUnwindSafe for CoseError
impl !Send for CoseError
impl !Sync for CoseError
impl Unpin for CoseError
impl !UnwindSafe for CoseError
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