pub struct TpmGetRandomResponse {
pub random_bytes: Vec<u8>,
}Expand description
TPM2_GetRandom response parser
Fields§
§random_bytes: Vec<u8>Implementations§
Source§impl TpmGetRandomResponse
impl TpmGetRandomResponse
Sourcepub fn parse(data: &[u8]) -> Result<Self, KernelError>
pub fn parse(data: &[u8]) -> Result<Self, KernelError>
Parse a TPM2_GetRandom response.
Format: header(10) + randomBytesCount(2) + randomBytes(N)