pub struct PcrState { /* private fields */ }Expand description
State of PCR registers
Implementations§
Source§impl PcrState
impl PcrState
Sourcepub fn extend(
&mut self,
pcr_index: usize,
digest: &[u8; 32],
) -> Result<[u8; 32], BootVerifyError>
pub fn extend( &mut self, pcr_index: usize, digest: &[u8; 32], ) -> Result<[u8; 32], BootVerifyError>
Extend a PCR with a new digest: PCR[i] = SHA256(PCR[i] || digest)
Returns the new PCR value or an error if the index is out of range.
Sourcepub fn get_extend_count(&self, pcr_index: usize) -> Option<u32>
pub fn get_extend_count(&self, pcr_index: usize) -> Option<u32>
Get the extend count for a PCR
Sourcepub fn is_extended(&self, pcr_index: usize) -> bool
pub fn is_extended(&self, pcr_index: usize) -> bool
Check if a PCR has been extended at least once
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PcrState
impl RefUnwindSafe for PcrState
impl Send for PcrState
impl Sync for PcrState
impl Unpin for PcrState
impl UnwindSafe for PcrState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)