Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nhynes/sgx-quote
- Owner: nhynes
- License: apache-2.0
- Created: 2019-09-21T13:27:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-21T23:05:09.000Z (about 5 years ago)
- Last Synced: 2024-10-12T12:17:17.760Z (26 days ago)
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
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.