authenticatordata

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADF_USER_PRESENT                 = byte(1)
	ADF_RFU1                         = byte(1 << 1)
	ADF_USER_VERIFIED                = byte(1 << 2)
	ADF_HAS_ATTESTED_CREDENTIAL_DATA = byte(1 << 6)
	ADF_HAS_EXTENSION_DATA           = byte(1 << 7)
)

Variables

This section is empty.

Functions

func Marshal

func Marshal(ad *T) ([]byte, error)

func Unmarshal

func Unmarshal(src []byte, dst *T) error

Unmarshal unmarshals authenticator data according to https://www.w3.org/TR/webauthn/#sctn-authenticator-data

func UnmarshalAttestedCredentialData

func UnmarshalAttestedCredentialData(src []byte, dst *AttestedCredentialData) (rest []byte, err error)

func UnmarshalFromAssertion

func UnmarshalFromAssertion(src []byte, dst *T)

Types

type AttestedCredentialData

type AttestedCredentialData struct {
	AAGUID              []byte
	CredentialID        []byte
	CredentialPublicKey cose_key.Key
}

type T

type T struct {
	RelayingPartyHash      []byte
	Flags                  byte
	SignCount              uint32
	AttestedCredentialData AttestedCredentialData
}

Jump to

Keyboard shortcuts

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