dcappattest

package
v0.0.0-...-95977df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: EUPL-1.2 Imports: 10 Imported by: 0

Documentation

Overview

Implementation of Apple app attestation see https://developer.apple.com/documentation/devicecheck/validating_apps_that_connect_to_your_server

Index

Constants

View Source
const AppleAppAttestRootCA = `` /* 797-byte string literal not displayed */
View Source
const FormatAppleAppAttest = "apple-app-attest"

Variables

This section is empty.

Functions

This section is empty.

Types

type Assertion

type Assertion struct {
	AuthenticatorData    *SimplifiedAuthenticatorData
	RawAuthenticatorData []byte
	Signature            []byte
}

func ParseAssertion

func ParseAssertion(assertionData []byte, clientDataHash [32]byte, pubKey interface{}, sigCounter uint32) (*Assertion, error)

type Attestation

type Attestation struct {
	Format               string
	AttestationStatement *AttestationStatement
	AuthenticatorData    *AuthenticatorData
	RawAuthData          []byte
}

DAAppAttest attestation details

func ParseAttestation

func ParseAttestation(attestationData []byte, clientDataHash [32]byte) (*Attestation, error)

ParseAttestation parses the attestation object from DCAppAttest

type AttestationStatement

type AttestationStatement struct {
	CredCert x509.Certificate
	CACerts  []x509.Certificate
	Receipt  []byte
}

AttestationStatement from DCAppAttest attestation object

type AuthenticatorData

type AuthenticatorData struct {
	RpidHash     []byte
	Flags        byte
	Count        uint32
	Aaguid       []byte
	CredentialId []byte
}

AuthenticatorData from DCAppAttest attestation object

type SimplifiedAuthenticatorData

type SimplifiedAuthenticatorData struct {
	RpidHash []byte
	Flags    byte
	Count    uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL