#[repr(C)]pub struct BootAttestation {
pub rvf_hash: [u8; 32],
pub capability_table_hash: [u8; 32],
pub region_layout_hash: [u8; 32],
pub boot_timestamp_ns: u64,
pub boot_sequence: u64,
pub platform_id: u64,
pub reserved: [u8; 16],
}Expand description
Boot attestation entry recorded as the first witness log entry.
Contains cryptographic hashes of the initial system state for later verification and audit.
Fields§
§rvf_hash: [u8; 32]SHA-256 hash of the RVF package that was booted.
capability_table_hash: [u8; 32]SHA-256 hash of the initial capability table.
region_layout_hash: [u8; 32]SHA-256 hash of the region layout.
boot_timestamp_ns: u64Boot timestamp in nanoseconds since UNIX epoch.
boot_sequence: u64Boot sequence number (for multi-boot detection).
platform_id: u64Platform identifier.
reserved: [u8; 16]Reserved for future use.
Implementations§
Source§impl BootAttestation
impl BootAttestation
Sourcepub fn new(
rvf_hash: [u8; 32],
capability_table_hash: [u8; 32],
region_layout_hash: [u8; 32],
boot_timestamp_ns: u64,
) -> Self
pub fn new( rvf_hash: [u8; 32], capability_table_hash: [u8; 32], region_layout_hash: [u8; 32], boot_timestamp_ns: u64, ) -> Self
Creates a new boot attestation.
Sourcepub fn with_metadata(
rvf_hash: [u8; 32],
capability_table_hash: [u8; 32],
region_layout_hash: [u8; 32],
boot_timestamp_ns: u64,
boot_sequence: u64,
platform_id: u64,
) -> Self
pub fn with_metadata( rvf_hash: [u8; 32], capability_table_hash: [u8; 32], region_layout_hash: [u8; 32], boot_timestamp_ns: u64, boot_sequence: u64, platform_id: u64, ) -> Self
Creates a boot attestation with full metadata.
Sourcepub fn from_bytes(bytes: &[u8]) -> Option<Self>
pub fn from_bytes(bytes: &[u8]) -> Option<Self>
Deserializes an attestation from bytes.
Trait Implementations§
Source§impl Clone for BootAttestation
impl Clone for BootAttestation
Source§fn clone(&self) -> BootAttestation
fn clone(&self) -> BootAttestation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootAttestation
impl Debug for BootAttestation
Source§impl Default for BootAttestation
impl Default for BootAttestation
Source§impl PartialEq for BootAttestation
impl PartialEq for BootAttestation
impl Copy for BootAttestation
impl Eq for BootAttestation
impl StructuralPartialEq for BootAttestation
Auto Trait Implementations§
impl Freeze for BootAttestation
impl RefUnwindSafe for BootAttestation
impl Send for BootAttestation
impl Sync for BootAttestation
impl Unpin for BootAttestation
impl UnsafeUnpin for BootAttestation
impl UnwindSafe for BootAttestation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more