Versions in this module Expand all Collapse all v0 v0.1.5 Apr 26, 2022 Changes in this version + type ClientData struct + Challenge string + CrossOrigin bool + Origin string + Type string + func (c *ClientData) ToB64() []byte v0.1.4 Apr 25, 2022 Changes in this version type AssertionReplyObjectParsed + AuthDataRaw []byte v0.1.3 Apr 25, 2022 Changes in this version type AuthenticatorData + Raw []byte v0.1.2 Apr 22, 2022 Changes in this version + const CMD_CBOR + const CMD_INIT + const CMD_WINK + const CMD_authenticatorClientPIN + const CMD_authenticatorGetAssertion + const CMD_authenticatorGetInfo + const CMD_authenticatorGetNextAssertion + const CMD_authenticatorMakeCredential + const CMD_authenticator_subCommand_changePin + const CMD_authenticator_subCommand_getKeyAgreement + const CMD_authenticator_subCommand_getPinToken + const CMD_authenticator_subCommand_getRetries + const CMD_authenticator_subCommand_setPin + func GetRandArray(size int) []byte + func PrintAttestationObject(attest *AttestationObject) + type AssertionReplyObjectParsed struct + AuthData *AuthData + Credential *PublicKeyCredentialDescriptor + NumberOfCredentials uint + Signature []byte + User *PublicKeyCredentialUserEntity + type AssertionReplyObjectRaw struct + AuthData []byte + Credential *PublicKeyCredentialDescriptor + NumberOfCredentials uint + Signature []byte + User *PublicKeyCredentialUserEntity + type AssertionRequestObject struct + AllowList []*PublicKeyCredentialDescriptor + ClientDataHash []byte + Extensions *ExtensionsListRequest + Options *Options + PinAuth []byte + PinProtocol uint + RPID string + type AttCredDataObject struct + Aaguid []byte + CredID []byte + CredIdLen uint16 + CredPubKey *CoseKey + type AttStmtObject_ES256 struct + Alg int + Sig []byte + X5c [][]byte + type AttestationObject struct + AttStmt *AttStmtObject_ES256 + AuthData *AuthenticatorData + Fmt string + type AttestationObjectRaw struct + AttStmt cbor.RawMessage + AuthData []byte + Fmt string + type AuthData struct + AttCredData *AttCredDataObject + Counter uint32 + Extensions *ExtensionsListReply + Flags uint8 + RpIdHash []byte + type AuthenticatorClientPIN struct + KeyAgreement *CoseKey + NewPinEnc []byte + PinAuth []byte + PinHashEnc []byte + PinProtocol uint + SubCommand uint + type AuthenticatorClientPIN_Answer struct + KeyAgreement *CoseKey + PinToken []byte + RetriesLeft uint + type AuthenticatorData struct + AttCredData *AttCredDataObject + Counter uint32 + Extensions *ExtensionsList + Flags uint8 + RpIdHash []byte + type AuthenticatorGetInfo struct + Aaguid []byte + Extensions []string + MaxMsgSize uint + Options map[string]bool + PinProtocols []uint + Versions []string + type AuthenticatorMakeCredential struct + ClientDataHash []byte + ExcludeList []*ExcludeCredential + Extensions *ExtensionsList + Options *Options + PinAuth []byte + PinProtocol uint + PubKeyCredParams []*PubKeyCredParamsItem + Rp *PublicKeyCredentialRpEntity + User *PublicKeyCredentialUserEntity + type CBOR_MSG struct + CBOR_DATA []byte + CTAP_COMMAND uint8 + CTAP_STATUS uint8 + type CTAP struct + func (c *CTAP) ClientPIN_GetKeyAgreement() (*AuthenticatorClientPIN_Answer, error) + func (c *CTAP) ClientPIN_GetPinToken(curPin string) (*AuthenticatorClientPIN_Answer, error) + func (c *CTAP) ClientPIN_GetRetries() (*AuthenticatorClientPIN_Answer, error) + func (c *CTAP) ClientPIN_Set(newPin string) (*AuthenticatorClientPIN_Answer, error) + func (c *CTAP) GetAssertion(rpId string, cdh []byte, allowList [][]byte, pinAuth []byte, withHMAC bool, ...) (*AssertionReplyObjectParsed, error) + func (c *CTAP) GetInfoCbor() (*AuthenticatorGetInfo, error) + func (c *CTAP) MakeCredential(cdh []byte, rp_ID, rp_name string, user_Name, user_DisplayName string, ...) (*AttestationObject, error) + func (c *CTAP) MakeSharedSecret() (*SharedSecret, error) + func (c *CTAP) SendInitCommand() (*INIT_INFO, error) + func (c *CTAP) SetDevice(dev *hidDevice) + func (c *CTAP) Wink() error + type CoseKey struct + Alg int + CrvOrNOrK int + D []byte + IV []byte + KeyOpts int + Kid []byte + Kty int + XOrE []byte + Y []byte + type Device_Capability_flags struct + CAPABILITY_CBOR bool + CAPABILITY_NMESG bool + CAPABILITY_WINK bool + type ExcludeCredential struct + ID []byte + Type string + type ExtensionsList struct + HmacSecret HmacSecret + type ExtensionsListReply struct + HmacSecret []byte + Secret []byte + type ExtensionsListRequest struct + HmacSecret *HmacSecretRequest + type HmacSecret *bool + type HmacSecretRequest struct + KeyAgreement *CoseKey + SaltAuth []byte + SaltEnc []byte + type INIT_INFO struct + Build_Device_Version uint8 + Capability_flags Device_Capability_flags + Major_Device_Version uint8 + Minor_Device_Version uint8 + Protocol_Version uint8 + type Options struct + Rk bool + Up bool + Uv bool + type PubKeyCredParamsItem struct + Alg int + Type string + type PublicKeyCredentialDescriptor struct + Id []byte + Type string + type PublicKeyCredentialRpEntity struct + Id string + Name string + type PublicKeyCredentialUserEntity struct + DisplayName string + Id []byte + Name string + type SharedSecret struct + Publickey_X []byte + Publickey_Y []byte + SharedSecret []byte v0.1.1 Apr 22, 2022 v0.1.0 Apr 22, 2022 Changes in this version + func Example() + type FIDO2 struct + CTAP *ctaphid.CTAP + Info *ctaphid.INIT_INFO + func GetFido2Device() (*FIDO2, error)