Enum tpm2_policy::TPMPolicyStep[][src]

pub enum TPMPolicyStep {
    NoStep,
    PCRs(HashingAlgorithmVec<u64>, Box<TPMPolicyStep>),
    Authorized {
        signkey: PublicKey,
        policy_ref: Vec<u8>,
        policies: Option<SignedPolicyList>,
        next: Box<TPMPolicyStep>,
    },
    Or([Box<TPMPolicyStep>; 8]),
}

Variants

NoStep
Authorized

Fields of Authorized

signkey: PublicKeypolicy_ref: Vec<u8>policies: Option<SignedPolicyList>next: Box<TPMPolicyStep>

Implementations

impl TPMPolicyStep[src]

pub fn send_policy(
    self,
    ctx: &mut Context,
    trial_policy: bool
) -> Result<(Option<AuthSession>, Option<Digest>)>
[src]

Sends the policy to the TPM2 Returns the session, and policy_digest for authInfo

Trait Implementations

impl Debug for TPMPolicyStep[src]

impl TryFrom<&'_ SignedPolicyStep> for TPMPolicyStep[src]

type Error = Error

The type returned in the event of a conversion error.

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

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.