pub enum AttestationError {
Show 19 variants
InvalidCose(CoseError),
InvalidCbor(Error),
X509 {
context: String,
error: Err<X509Error>,
},
MissingField(String),
InvalidType(String),
InvalidLength(String, String),
TimestampConversion(TryFromIntError),
CoseSignatureVerifyFailed(CoseError),
LeafSignatureVerifyFailed,
CertChainSignatureFailed {
index: usize,
},
CertChainIssuerOrSubjectMismatch {
index: usize,
},
CertChainExpired {
index: usize,
},
TimestampMismatch {
expected: u64,
got: u64,
},
TooOld {
age: u64,
got: u64,
now: u64,
},
PcrsMismatch {
idx: usize,
expected: [u8; 48],
got: [u8; 48],
},
ImageIdMismatch {
expected: String,
got: String,
},
RootPublicKeyMismatch {
expected: String,
got: String,
},
PublicKeyMismatch {
expected: String,
got: String,
},
UserDataMismatch {
expected: String,
got: String,
},
}Variants§
InvalidCose(CoseError)
InvalidCbor(Error)
X509
MissingField(String)
InvalidType(String)
InvalidLength(String, String)
TimestampConversion(TryFromIntError)
CoseSignatureVerifyFailed(CoseError)
LeafSignatureVerifyFailed
CertChainSignatureFailed
CertChainIssuerOrSubjectMismatch
CertChainExpired
TimestampMismatch
TooOld
PcrsMismatch
ImageIdMismatch
RootPublicKeyMismatch
PublicKeyMismatch
UserDataMismatch
Trait Implementations§
Source§impl Debug for AttestationError
impl Debug for AttestationError
Source§impl Display for AttestationError
impl Display for AttestationError
Source§impl Error for AttestationError
impl Error for AttestationError
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 From<TryFromIntError> for AttestationError
impl From<TryFromIntError> for AttestationError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AttestationError
impl !RefUnwindSafe for AttestationError
impl !Send for AttestationError
impl !Sync for AttestationError
impl Unpin for AttestationError
impl !UnwindSafe for AttestationError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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