Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nhynes/sgx-quote

Zero-copy Intel SGX quote parsing in Rust using nom
https://github.com/nhynes/sgx-quote

Last synced: 10 days ago
JSON representation

Zero-copy Intel SGX quote parsing in Rust using nom

Awesome Lists containing this project

README

        

# sgx-quote

[![crates.io version](https://img.shields.io/crates/v/sgx-quote.svg)](https://crates.io/crates/sgx-quote)
[![Docs](https://docs.rs/sgx-quote/badge.svg)](https://docs.rs/sgx-quote)

Zero-copy parsing of Intel SGX quotes using [nom](https://github.com/Geal/nom).

## Example

```rust
let quote = sgx_quote::Quote::parse(quote_bytes)?;
let sig = quote.signature;
ecdsa_verify(sig.attestation_key, quote.signed_message(), sig.isv_report_signature)?;
```

## Fuzzing

This crate is fuzzed using [cargo-fuzz](https://rust-fuzz.github.io/book/cargo-fuzz.html).
It hasn't found a panic yet, but this crate is also a dead simple nom parser, so I should hope not.