Expand description
Module for parsing and validating attestation documents from AWS Nitro Enclaves.
Structs
- Reference implementation of the AWS attestation doc’s PCRs exposed at build time.
Traits
- Trait to allow custom implementations of PCR-like types. This helps to make the per language bindings more idiomatic.
Functions
- Takes a byte array and parses is as an
AttestationDoc
andCoseSign1
- Parses
PCRs
from an attestation doc - Takes a public key and attestation doc in
CoseSign1
form and returns a result based on it’s validity - Takes an
AttestationDoc
and expected challenge and compares them - Extracts the nonce embedded in the attestation doc, encodes it to base64 and compares it to the base64 encoded nonce given
- Parses the PCRs from the attestation doc and compares against the expected values