Enum AttestError

Source
pub enum AttestError {
Show 29 variants WebPki(Error), InvalidCertChain(Error), Nsm(Error), InvalidEndEntityCert, InvalidCOSESign1Signature, InvalidCOSESign1Structure, InvalidDigest, InvalidModuleId, InvalidPcr, InvalidCABundle, InvalidTimeStamp, InvalidPubKey, InvalidBytes, UnexpectedNsmResponse(NsmResponse), Base64DecodingError(String), PemDecodingError, FailedDecodeKeyFromCert, FailedToParseCert, MissingUserData, DifferentUserData, UnexpectedAttestationDocNonce, MissingPcr0, DifferentPcr0, MissingPcr1, DifferentPcr1, MissingPcr2, DifferentPcr2, MissingPcr3, DifferentPcr3,
}
Expand description

Attestation error.

Variants§

§

WebPki(Error)

webpki::Error wrapper.

§

InvalidCertChain(Error)

Invalid certificate chain.

§

Nsm(Error)

aws_nitro_enclaves_nsm_api::api::Error wrapper.

§

InvalidEndEntityCert

Invalid end entity certificate. In the case of Nitro this means the NSM’s certificate was invalid.

§

InvalidCOSESign1Signature

Invalid COSE Sign1 structure signature. In the case of Nitro this means the end entitys signature of the attestation doc was invalid.

§

InvalidCOSESign1Structure

Invalid COSE Sign1 structure.

§

InvalidDigest

Invalid hash digest.

§

InvalidModuleId

Invalid NSM module id.

§

InvalidPcr

Invalid PCR.

§

InvalidCABundle

Invalid certificate authority bundle.

§

InvalidTimeStamp

Invalid time.

§

InvalidPubKey

Invalid public key.

§

InvalidBytes

Invalid bytes.

§

UnexpectedNsmResponse(NsmResponse)

The NSM returned an unexpected response when queried

§

Base64DecodingError(String)

Error while decoding the attestation document (base64 encoded).

§

PemDecodingError

Error while decoding PEM.

§

FailedDecodeKeyFromCert

Error trying to decode the public key in a cert.

§

FailedToParseCert

Error while trying to parse a cert.

§

MissingUserData

User data is missing in the attestation doc.

§

DifferentUserData

User data (normally manifest hash) does not match the attestation doc.

§

UnexpectedAttestationDocNonce

The attestation doc has a nonce when none was expected.

§

MissingPcr0

The attestation doc does not contain a pcr0.

§

DifferentPcr0

The pcr3 in the attestation doc does not match.

§

MissingPcr1

The attestation doc does not have a pcr1.

§

DifferentPcr1

The attestation doc has a different pcr1.

§

MissingPcr2

The attestation doc does not have a pcr2.

§

DifferentPcr2

The attestation doc has a different pcr2.

§

MissingPcr3

The attestation doc does not have a pcr3.

§

DifferentPcr3

The attestation doc has a different pcr3.

Trait Implementations§

Source§

impl Debug for AttestError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Error> for AttestError

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for AttestError

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.