func (attestationStatement AttestationStatement) UnmarshalCertInfo() (*tpm.AttestationData, error) {
	certInfo, ok := attestationStatement["certInfo"]
	if !ok {
		return nil, ErrMissingCertInfo
	}

	bs, ok := certInfo.([]byte)
	if !ok {
		return nil, ErrInvalidCertInfo
	}

	attestationData, err := tpm.UnmarshalAttestationData(bs)
	if err != nil {
		return nil, fmt.Errorf("%w: %s", ErrInvalidCertInfo, err)
	}

	return attestationData, nil
}
// UnmarshalCertInfo unmarshals the TPM certInfo from an attestation statement.
UnmarshalCertInfo unmarshals the TPM certInfo from an attestation statement.
// UnmarshalCertInfo unmarshals the TPM certInfo from an attestation statement .
func (attestationStatement AttestationStatement) UnmarshalCertInfo() (*tpm.AttestationData, error) {
	certInfo, ok := attestationStatement["certInfo"]
	if !ok {
		return nil, ErrMissingCertInfo
	}
	bs, ok := certInfo.([]byte)
	if !ok {
		return nil, ErrInvalidCertInfo
	}
	attestationData, err := tpm.UnmarshalAttestationData(bs)
	if err != nil {
		return nil, fmt.Errorf("%w: %s", ErrInvalidCertInfo, err)
	}
	return attestationData, nil
}
func ( attestationStatement AttestationStatement ) UnmarshalCertInfo ( ) ( * tpm . AttestationData , error ) { certInfo , ok := attestationStatement [ " " ] if ! ok { return nil , ErrMissingCertInfo } bs , ok := certInfo . ( [ ] byte ) if ! ok { return nil , ErrInvalidCertInfo } attestationData , err := tpm . UnmarshalAttestationData ( bs ) if err != nil { return nil , fmt . Errorf ( " " , ErrInvalidCertInfo , err ) } return attestationData , nil }
UnmarshalCertInfo unmarshals the TPM certInfo from an attestation statement.
UnmarshalCertInfo unmarshals the TPM certInfo from an attestation statement .