Versions in this module Expand all Collapse all v1 v1.0.0 May 5, 2018 Changes in this version + var ErrCounterTooLow = errors.New("u2f: counter too low") + type Challenge struct + AppID string + Challenge []byte + Timestamp time.Time + TrustedFacets []string + func NewChallenge(appID string, trustedFacets []string) (*Challenge, error) + func (c *Challenge) SignRequest(regs []Registration) *WebSignRequest + type ClientData struct + CIDPubKey json.RawMessage + Challenge string + Origin string + Typ string + type Config struct + RootAttestationCertPool *x509.CertPool + SkipAttestationVerify bool + type JwkKey struct + Crv string + KTy string + X string + Y string + type RegisterRequest struct + Challenge string + Version string + type RegisterResponse struct + ClientData string + RegistrationData string + Version string + type RegisteredKey struct + AppID string + KeyHandle string + Version string + type Registration struct + AttestationCert *x509.Certificate + KeyHandle []byte + PubKey ecdsa.PublicKey + Raw []byte + func Register(resp RegisterResponse, c Challenge, config *Config) (*Registration, error) + func (r *Registration) MarshalBinary() ([]byte, error) + func (r *Registration) UnmarshalBinary(data []byte) error + func (reg *Registration) Authenticate(resp SignResponse, c Challenge, counter uint32) (newCounter uint32, err error) + type SignResponse struct + ClientData string + KeyHandle string + SignatureData string + type TrustedFacets struct + Ids []string + Version struct{ ... } + type TrustedFacetsEndpoint struct + TrustedFacets []TrustedFacets + type WebRegisterRequest struct + AppID string + RegisterRequests []RegisterRequest + RegisteredKeys []RegisteredKey + func NewWebRegisterRequest(c *Challenge, regs []Registration) *WebRegisterRequest + type WebSignRequest struct + AppID string + Challenge string + RegisteredKeys []RegisteredKey