attestation

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationStatementFormatIdentifier

type AttestationStatementFormatIdentifier string

AttestationStatementFormatIdentifier is an enum consisting of IANA registered Attestation Statement Format Identifiers. https://www.iana.org/assignments/webauthn/webauthn.xhtml

const (
	AttestationStatementFormatIdentifierPacked           AttestationStatementFormatIdentifier = "packed"
	AttestationStatementFormatIdentifierTPM              AttestationStatementFormatIdentifier = "tpm"
	AttestationStatementFormatIdentifierAndroidKey       AttestationStatementFormatIdentifier = "android-key"
	AttestationStatementFormatIdentifierAndroidSafetyNet AttestationStatementFormatIdentifier = "android-safetynet"
	AttestationStatementFormatIdentifierFIDOU2F          AttestationStatementFormatIdentifier = "fido-u2f"
	AttestationStatementFormatIdentifierApple            AttestationStatementFormatIdentifier = "apple"
	AttestationStatementFormatIdentifierNone             AttestationStatementFormatIdentifier = "none"
)

type FIDOU2FAttestationStatementFormat

type FIDOU2FAttestationStatementFormat struct {
	X509Chain [][]byte `cbor:"x5c" json:"x5c"`
	Signature []byte   `cbor:"sig" json:"sig"`
}

FIDOU2FAttestationStatementFormat is attestation statement format is used with FIDO U2F authenticators. https://www.w3.org/TR/webauthn-3/#sctn-fido-u2f-attestation

type PackedAttestationStatementFormat

type PackedAttestationStatementFormat struct {
	Algorithm key.Alg  `cbor:"alg" json:"alg"`
	Signature []byte   `cbor:"sig" json:"sig"`
	X509Chain [][]byte `cbor:"x5c" json:"x5c"`
}

PackedAttestationStatementFormat is a WebAuthn optimized attestation statement format. https://www.w3.org/TR/webauthn-3/#sctn-packed-attestation

type TPMAttestationStatementFormat

type TPMAttestationStatementFormat struct {
	Version   string   `cbor:"ver" json:"ver"`
	Algorithm key.Alg  `cbor:"alg" json:"alg"`
	X509Chain [][]byte `cbor:"x5c" json:"x5c"`
	AIKCert   []byte   `cbor:"aikCert" json:"aikCert"`
	Signature []byte   `cbor:"sig" json:"sig"`
	CertInfo  []byte   `cbor:"certInfo" json:"certInfo"` // TPMS_ATTEST structure
	PubArea   []byte   `cbor:"pubArea" json:"pubArea"`   // TPMT_PUBLIC structure
}

TPMAttestationStatementFormat is generally used by authenticators that use a Trusted Platform Module as their cryptographic engine. https://www.w3.org/TR/webauthn-3/#sctn-tpm-attestation

Jump to

Keyboard shortcuts

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