[−][src]Struct tss_esapi::structures::PcrSelectionListBuilder
A builder for the PcrSelectionList struct.
Implementations
impl PcrSelectionListBuilder
[src]
pub fn new() -> Self
[src]
pub fn with_size_of_select(self, size_of_select: PcrSelectSize) -> Self
[src]
Set the size of the pcr selection(sizeofSelect)
Arguments
size_of_select -- The size that will be used for all selections(sizeofSelect).
pub fn with_selection(
self,
hash_algorithm: HashingAlgorithm,
pcr_slots: &[PcrSlot]
) -> Self
[src]
self,
hash_algorithm: HashingAlgorithm,
pcr_slots: &[PcrSlot]
) -> Self
Adds a selection associated with a specific HashingAlgorithm.
This function will not overwrite the values already associated with a specific HashingAlgorithm only update.
Arguments
hash_algorithm -- The HashingAlgorithm associated with the pcr selection pcr_slots -- The PCR slots in the selection.
pub fn build(self) -> PcrSelectionList
[src]
Builds a PcrSelections with the values that have been provided.
If no size of select have been provided then it will be defaulted to 3. This may not be the correct size for the current platform. The correct values can be obtained by quering the tpm for its capabilities.
Trait Implementations
impl Debug for PcrSelectionListBuilder
[src]
impl Default for PcrSelectionListBuilder
[src]
fn default() -> PcrSelectionListBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for PcrSelectionListBuilder
impl Send for PcrSelectionListBuilder
impl Sync for PcrSelectionListBuilder
impl Unpin for PcrSelectionListBuilder
impl UnwindSafe for PcrSelectionListBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Free for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,