func (attestationStatement AttestationStatement) UnmarshalPubArea() (*tpm.Public, error) {
	pubArea, ok := attestationStatement["pubArea"]
	if !ok {
		return nil, ErrMissingPubArea
	}

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

	public, err := tpm.UnmarshalPublic(bs)
	if err != nil {
		return nil, fmt.Errorf("%w: %s", ErrInvalidPubArea, err)
	}

	return public, nil
}
// UnmarshalPubArea unmarshals the pubArea field from the attestation statement.
UnmarshalPubArea unmarshals the pubArea field from the attestation statement.
// UnmarshalPubArea unmarshals the pubArea field from the attestation statement .
func (attestationStatement AttestationStatement) UnmarshalPubArea() (*tpm.Public, error) {
	pubArea, ok := attestationStatement["pubArea"]
	if !ok {
		return nil, ErrMissingPubArea
	}
	bs, ok := pubArea.([]byte)
	if !ok {
		return nil, ErrInvalidPubArea
	}
	public, err := tpm.UnmarshalPublic(bs)
	if err != nil {
		return nil, fmt.Errorf("%w: %s", ErrInvalidPubArea, err)
	}
	return public, nil
}
func ( attestationStatement AttestationStatement ) UnmarshalPubArea ( ) ( * tpm . Public , error ) { pubArea , ok := attestationStatement [ " " ] if ! ok { return nil , ErrMissingPubArea } bs , ok := pubArea . ( [ ] byte ) if ! ok { return nil , ErrInvalidPubArea } public , err := tpm . UnmarshalPublic ( bs ) if err != nil { return nil , fmt . Errorf ( " " , ErrInvalidPubArea , err ) } return public , nil }
UnmarshalPubArea unmarshals the pubArea field from the attestation statement.
UnmarshalPubArea unmarshals the pubArea field from the attestation statement .