shade-attestation 0.2.0

Attestation crate for the Shade Agent Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Number of bytes for the report data.
pub const REPORT_DATA_SIZE: usize = 64;

#[derive(Debug, Clone, derive_more::From)]
pub struct ReportData([u8; REPORT_DATA_SIZE]);

impl ReportData {
    pub fn to_bytes(&self) -> [u8; REPORT_DATA_SIZE] {
        self.0
    }
}