#attestation #enclaves #aws #bindings-generator #evervault #nitro-enclaves

attestation-doc-validation

A Rust library for attesting enclaves according to the Evervault Attestation scheme. This crate is used to generate ffi bindings.

13 releases

0.7.4 Feb 8, 2024
0.7.3 Oct 13, 2023
0.6.3 Sep 7, 2023
0.6.2 Aug 31, 2023
0.4.0 Jan 31, 2023

#264 in FFI

Download history 46/week @ 2023-12-29 12/week @ 2024-01-05 27/week @ 2024-01-12 166/week @ 2024-01-19 1/week @ 2024-01-26 130/week @ 2024-02-02 341/week @ 2024-02-09 548/week @ 2024-02-16 287/week @ 2024-02-23 433/week @ 2024-03-01 388/week @ 2024-03-08 486/week @ 2024-03-15 483/week @ 2024-03-22 331/week @ 2024-03-29 339/week @ 2024-04-05

1,701 downloads per month

Apache-2.0

59KB
1K SLoC

Attestation Doc Validation

This library exposes the high level functions required by Evervault Clients to attest an Enclave per the defined Attestation Protocol.

The library has been design to allow for bindings to be generated for multiple languages on top of the Rust crate, and should also expose enough logic to be composable for alternative Nitro Enclaves Attestation protocols.

The project makes use of cargo make to provide high level workflows, which can be found in the Makefile.toml.

Structure

The project is split into 2 core modules:

  • attestation_doc.rs covers all validation and parsing relating to Nitro Enclaves attestation documents.
  • cert.rs covers all validation and parsing of X509 certs. This is to allow clients to pass off the raw pem or der encoded certs from their enclave connection to be attested.

Two high level helpers are exposed from lib.rs:

  • attestation_doc_validation::parse_cert — This is a helper for parsing bytes into an X509 instance and is reasonably generic.
  • attestation_doc_validation::validate_attestation_doc_in_cert — This drives the entire Evervault Attestation Protocol.

The underlying API is exposed through submodules. You can read more about the APIs exposed in our docs.

Dependencies

~16–27MB
~483K SLoC