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

marshal_command

Function marshal_command 

Source
pub fn marshal_command(
    tag: TpmStructureTag,
    command: TpmCommandCode,
    params: &[u8],
) -> Vec<u8>
Expand description

Marshal a generic TPM command into a byte buffer.

Takes the command code, tag, and parameter bytes and produces a complete command packet with the correct header.