[][src]Struct tss_esapi::structures::PcrSelectionListBuilder

pub struct PcrSelectionListBuilder { /* fields omitted */ }

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.