Struct tss_esapi::structures::pcr_select::PcrSelect
source · [−]pub struct PcrSelect { /* private fields */ }Expand description
This module contains necessary representations of the items belonging to the TPMS_PCR_SELECT structure.
The minimum number of octets allowed in a TPMS_PCR_SELECT.sizeOfSelect is not determined by the number of PCR implemented but by the number of PCR required by the platform-specific specification with which the TPM is compliant or by the implementer if not adhering to a platform-specific specification.
Implementations
sourceimpl PcrSelect
impl PcrSelect
sourcepub fn create(
pcr_select_size: PcrSelectSize,
pcr_slots: &[PcrSlot]
) -> Result<Self>
pub fn create(
pcr_select_size: PcrSelectSize,
pcr_slots: &[PcrSlot]
) -> Result<Self>
Creates a new PcrSelect
sourcepub fn size_of_select(&self) -> PcrSelectSize
pub fn size_of_select(&self) -> PcrSelectSize
Returns the size of the select.
NB! This is not the same as how many PcrSlot there are in the select but rather how many octets that are needed to hold the bit field that indicate what slots that are selected.
Trait Implementations
sourceimpl From<PcrSelect> for TPMS_PCR_SELECT
impl From<PcrSelect> for TPMS_PCR_SELECT
sourceimpl TryFrom<TPMS_PCR_SELECT> for PcrSelect
impl TryFrom<TPMS_PCR_SELECT> for PcrSelect
impl Copy for PcrSelect
impl Eq for PcrSelect
impl StructuralEq for PcrSelect
impl StructuralPartialEq for PcrSelect
Auto Trait Implementations
impl RefUnwindSafe for PcrSelect
impl Send for PcrSelect
impl Sync for PcrSelect
impl Unpin for PcrSelect
impl UnwindSafe for PcrSelect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more