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§
Structs§
- TpmPolicy
State - Pre-resolved data needed for policy execution.