Module policy

Module policy 

Source
Expand description

This module contains the parser and executor for the unified policy language.

Re-exports§

pub use software::*;
pub use tpm::*;

Modules§

software
A pure software implementation of a policy session for dry-run calculations.
tpm
A policy session that interacts directly with a TPM device.

Enums§

Expression
The Abstract Syntax Tree (AST) for the unified policy language.
PolicyError

Traits§

PolicySession
An abstract interface for a session that can have a policy applied to it.

Functions§

execute_policy
Traverses a policy AST and applies the commands to a session object.
parse
Parses an expression string, ensuring the entire input is consumed.
populate_pcr_digests
Recursively traverses a policy AST and populates any missing PCR digests from a provided map.