Struct tss_esapi::abstraction::pcr::PcrBank
source · pub struct PcrBank { /* private fields */ }
Expand description
Struct for holding PcrSlots and their corresponding values.
Implementations§
source§impl PcrBank
impl PcrBank
sourcepub fn create(pcr_slots: Vec<PcrSlot>, digests: Vec<Digest>) -> Result<PcrBank>
pub fn create(pcr_slots: Vec<PcrSlot>, digests: Vec<Digest>) -> Result<PcrBank>
Function that creates PcrBank from a vector of pcr slots and a vector of pcr digests.
§Details
The order of pcr slots are assumed to match the order of the Digests.
§Errors
-
If number of pcr slots does not match the number of pcr digests InconsistentParams error is returned.
-
If the vector of pcr slots contains duplicates then InconsistentParams error is returned.
sourcepub fn get_digest(&self, pcr_slot: PcrSlot) -> Option<&Digest>
pub fn get_digest(&self, pcr_slot: PcrSlot) -> Option<&Digest>
sourcepub fn has_digest(&self, pcr_slot: PcrSlot) -> bool
pub fn has_digest(&self, pcr_slot: PcrSlot) -> bool
sourcepub fn remove_digest(&mut self, pcr_slot: PcrSlot) -> Option<Digest>
pub fn remove_digest(&mut self, pcr_slot: PcrSlot) -> Option<Digest>
Trait Implementations§
source§impl<'a> IntoIterator for &'a PcrBank
impl<'a> IntoIterator for &'a PcrBank
source§impl PartialEq for PcrBank
impl PartialEq for PcrBank
impl Eq for PcrBank
impl StructuralPartialEq for PcrBank
Auto Trait Implementations§
impl Freeze for PcrBank
impl RefUnwindSafe for PcrBank
impl Send for PcrBank
impl Sync for PcrBank
impl Unpin for PcrBank
impl UnwindSafe for PcrBank
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