⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

pcr_extend

Function pcr_extend 

Source
pub fn pcr_extend(
    pcr_index: PcrIndex,
    measurement: &[u8; 32],
) -> Result<(), TpmError>
Expand description

Convenience: extend a PCR with a measurement hash via the global TPM instance.

Returns Ok(()) if the TPM is available and the extend succeeded, or if no TPM is available (silent no-op for callers that use TPM opportunistically).