Structs§
- Attestation
Document - The AWS Nitro Attestation Document, see https://docs.aws.amazon.com/enclaves/latest/user/verify-root.html#doc-def
- Cose
Sign1 - Implementation of the COSE_Sign1 structure as defined in RFC8152. protected_header: See Section 3 (Note: AWS Nitro does not have unprotected header.) payload: See Section 4.2. signature: See Section 4.2. Class and trait impl adapted from https://github.com/awslabs/aws-nitro-enclaves-cose/blob/main/src/sign.rs
- Header
Map - Empty map wrapper for COSE headers.
Enums§
- Nitro
Attestation Verify Error - Error type for Nitro attestation verification.
Functions§
- parse_
nitro_ attestation - Given an attestation in bytes, parse it into signature, signed message and a parsed payload.
- verify_
nitro_ attestation - Given the signature bytes, signed message and parsed payload, verify everything according to https://docs.aws.amazon.com/enclaves/latest/user/verify-root.html and https://github.com/aws/aws-nitro-enclaves-nsm-api/blob/main/docs/attestation_process.md.