Crate tpm2_policy_language

Crate tpm2_policy_language 

Source
Expand description

A parser for the TPM 2.0 policy language.

This crate provides the necessary components to parse a policy language string into an Abstract Syntax Tree (AST), represented by the [Expression] enum. The main entry point is the [Expression::new()] function.

It also provides the [Expression::to_command_list()] function to convert a parsed AST into a sequence of serialized TPM command blobs, and the [Expression::from_command_list()] function to perform the reverse operation.

Re-exports§

pub use error::*;
pub use expression::*;

Modules§

error
expression

Structs§

TpmPolicyState
Pre-resolved data needed for policy execution.