tpm_build_response

Function tpm_build_response 

Source
pub fn tpm_build_response<R>(
    response: &R,
    sessions: &[TpmsAuthResponse],
    rc: TpmRc,
    writer: &mut TpmWriter<'_>,
) -> TpmResult<()>
where R: TpmHeader,
Expand description

Builds a TPM response.

ยงErrors

  • TpmErrorKind::ValueTooLarge if the response has unknown state