Documentation
¶
Index ¶
- func PrintAttestationObject(attest *AttestationObject)
- type AttCredDataObject
- type AttStmtObject_ES256
- type AttestationObject
- type AttestationObjectRaw
- type AuthenticatorData
- type AuthenticatorMakeCredential
- type CoseKey
- type ExcludeCredential
- type ExtensionsList
- type HmacSecret
- type Options
- type PubKeyCredParamsItem
- type PublicKeyCredentialRpEntity
- type PublicKeyCredentialUserEntity
- type SharedSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintAttestationObject ¶
func PrintAttestationObject(attest *AttestationObject)
Types ¶
type AttCredDataObject ¶
type AttStmtObject_ES256 ¶
type AttestationObject ¶
type AttestationObject struct {
Fmt string
AuthData *AuthenticatorData
AttStmt *AttStmtObject_ES256
}
func Parser ¶
func Parser(raw []byte) (*AttestationObject, error)
type AttestationObjectRaw ¶
type AttestationObjectRaw struct {
Fmt string `cbor:"1,keyasint"`
AuthData []byte `cbor:"2,keyasint"`
AttStmt cbor.RawMessage `cbor:"3,keyasint"`
}
type AuthenticatorData ¶
type AuthenticatorData struct {
RpIdHash []byte //32 byte
Flags uint8
Counter uint32
AttCredData *AttCredDataObject
Extensions *ExtensionsList
}
type AuthenticatorMakeCredential ¶
type AuthenticatorMakeCredential struct {
ClientDataHash []byte `cbor:"1,keyasint,omitempty"`
Rp *PublicKeyCredentialRpEntity `cbor:"2,keyasint,omitempty"`
User *PublicKeyCredentialUserEntity `cbor:"3,keyasint,omitempty"`
PubKeyCredParams []*PubKeyCredParamsItem `cbor:"4,keyasint,omitempty"`
ExcludeList []*ExcludeCredential `cbor:"5,keyasint,omitempty"`
Extensions *ExtensionsList `cbor:"6,keyasint,omitempty"`
Options *Options `cbor:"7,keyasint,omitempty"`
PinAuth []byte `cbor:"8,keyasint,omitempty"`
PinProtocol uint `cbor:"9,keyasint,omitempty"`
}
func Make_Credentials ¶
type CoseKey ¶
type CoseKey struct {
Kty int `cbor:"1,keyasint,omitempty"`
Kid []byte `cbor:"2,keyasint,omitempty"`
Alg int `cbor:"3,keyasint,omitempty"`
KeyOpts int `cbor:"4,keyasint,omitempty"`
IV []byte `cbor:"5,keyasint,omitempty"`
CrvOrNOrK int `cbor:"-1,keyasint,omitempty"` // K for symmetric keys, Crv for elliptic curve keys, N for RSA modulus
XOrE []byte `cbor:"-2,keyasint,omitempty"` // X for curve x-coordinate, E for RSA public exponent
Y []byte `cbor:"-3,keyasint,omitempty"` // Y for curve y-cooridate
D []byte `cbor:"-4,keyasint,omitempty"`
}
Use cbor.RawMessage to delay unmarshaling (CrvOrNOrK's data type depends on Kty's value).
func GetKeyAgreement ¶
func GetKeyAgreement(secret *SharedSecret) *CoseKey
type ExcludeCredential ¶
type ExtensionsList ¶
type ExtensionsList struct {
HmacSecret HmacSecret `cbor:"hmac-secret,omitempty"`
}
type HmacSecret ¶
type HmacSecret *bool
type PubKeyCredParamsItem ¶
type SharedSecret ¶
type SharedSecret struct {
}
Click to show internal directories.
Click to hide internal directories.