#nitro #enclaves #aws

aws-nitro-enclaves-nsm-api

This library provides the API for the Nitro Secure Module used in AWS Nitro Enclaves

3 unstable releases

0.3.0 May 2, 2023
0.2.1 Apr 18, 2022
0.2.0 Feb 24, 2022

#155 in Hardware support

Download history 308/week @ 2023-01-18 319/week @ 2023-01-25 509/week @ 2023-02-01 435/week @ 2023-02-08 466/week @ 2023-02-15 351/week @ 2023-02-22 256/week @ 2023-03-01 445/week @ 2023-03-08 328/week @ 2023-03-15 270/week @ 2023-03-22 260/week @ 2023-03-29 544/week @ 2023-04-05 573/week @ 2023-04-12 324/week @ 2023-04-19 433/week @ 2023-04-26 392/week @ 2023-05-03

1,788 downloads per month
Used in em-app

Apache-2.0

48KB
290 lines

Nitro Secure Module library

[![version]][crates.io] [![docs]][docs.rs] ![msrv] [version]: https://img.shields.io/crates/v/aws-nitro-enclaves-nsm-api.svg [crates.io]: https://crates.io/crates/aws-nitro-enclaves-nsm-api [docs]: https://img.shields.io/docsrs/aws-nitro-enclaves-nsm-api [docs.rs]: https://docs.rs/aws-nitro-enclaves-nsm-api [msrv]: https://img.shields.io/badge/MSRV-1.60.0-blue

This is a collection of helpers which Nitro Enclaves userland applications can use to communicate with a connected NitroSecureModule (NSM) device.

Various operations can be requested such as:

  • PCR query and manipulation
  • Attestation
  • Entropy

Prerequisites

An up-to-date RUST toolchain (v1.60.0 or later)

How To Build

  1. Clone the repository
  2. Execute make nsm-api-stable

How to Test

Prerequisites

To run the tests it's required to build the command-executor tool, as follows:

make command-executor

License

This project is licensed under the Apache-2.0 License.

Security issue notifications

If you discover a potential security issue in the Nitro Enclaves NSM API, we ask that you notify AWS Security via our vulnerability reporting page. Please do not create a public GitHub issue.

Dependencies

~3MB
~70K SLoC