#attestation #enclaves #aws #generated-bindings #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.

15 unstable releases (5 breaking)

0.9.0 Aug 16, 2024
0.8.0 Apr 29, 2024
0.7.4 Feb 8, 2024
0.7.3 Oct 13, 2023
0.5.0-beta Feb 7, 2023

#296 in FFI

Download history 1164/week @ 2024-08-16 725/week @ 2024-08-23 1089/week @ 2024-08-30 594/week @ 2024-09-06 338/week @ 2024-09-13 762/week @ 2024-09-20 666/week @ 2024-09-27 399/week @ 2024-10-04 488/week @ 2024-10-11 590/week @ 2024-10-18 206/week @ 2024-10-25 692/week @ 2024-11-01 721/week @ 2024-11-08 425/week @ 2024-11-15 340/week @ 2024-11-22 571/week @ 2024-11-29

2,284 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

~15–24MB
~448K SLoC