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.