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

parse_response

Function parse_response 

Source
pub fn parse_response(data: &[u8]) -> Option<(TpmResponseCode, &[u8])>
Expand description

Parse a TPM response buffer and extract the response code and payload.

Returns (response_code, payload) where payload is everything after the 10-byte header. Returns None if the buffer is too short.