underhill_attestation

Function parse_ak_cert_response

Source
pub fn parse_ak_cert_response(response: &[u8]) -> Result<Vec<u8>, AkCertError>
Expand description

Parse a AK_CERT_REQUEST response and return the payload (i.e., the AK cert).

Returns Ok(Vec<u8>) on successfully validating the response, otherwise returns an error.