Versions in this module Expand all Collapse all v0 v0.11.0 Aug 8, 2026 Changes in this version + const DeviceConfigurationButtonHOTPConfiguredMask + const DeviceConfigurationFIDOPINLockedMask + const DeviceConfigurationFIDOPINSetMask + const DeviceConfigurationFingerprintSensorMask + const DeviceConfigurationHOTPLongPressMask + const DeviceConfigurationHOTPMask + const DeviceConfigurationHOTPSuppressEnterMask + const DeviceConfigurationNFCMask + const DeviceExtensionButtonHOTPUnsupportedMask + const DeviceExtensionCCIDMask + const DeviceExtensionFIDO21Mask + const DeviceExtensionFingerprintRegistrationMask + const DeviceExtensionHOTPNumericKeypadMask + const DeviceExtensionMandatoryFingerprintSupportMask + const DeviceExtensionOTPRequiresFingerprintMask + const DeviceExtensionTOTPMask + const TransferTypeCCIDDisabledMask + const TransferTypeFIDODisabledMask + const TransferTypeHOTPKeystrokeDisabledMask + var ErrInvalidATR = errors.New("token2: invalid ATR") + var ErrInvalidConfiguration = errors.New("token2: invalid configuration") + var ErrInvalidSerialResponse = errors.New("token2: invalid serial-number response") + func ParseSerialNumber(response []byte) (string, error) + type ATR struct + ProductID uint16 + Raw []byte + SerialSuffix string + func ParseATR(atr []byte) (ATR, error) + type Appearance [4]byte + type Configuration struct + Appearance Appearance + DeviceConfiguration byte + DeviceExtension byte + FIDOVersion FIDOVersion + Raw []byte + TransferType byte + func ParseConfiguration(response []byte) (Configuration, error) + type DeviceInfo struct + Appearance *Appearance + Branding string + ButtonHOTPConfigured bool + ButtonHOTPRequiresLongPress bool + ButtonHOTPSendsEnter bool + ButtonHOTPUsesNumericKeypad bool + CCIDEnabled bool + CapabilitiesKnown bool + FIDOEnabled bool + FIDOPINLocked bool + FIDOPINSet bool + FIDOVersion *FIDOVersion + FormFactor string + HOTPKeystrokeEnabled bool + HasFingerprintSensor bool + InterfaceStateKnown bool + OTPRequiresFingerprint bool + ProductID uint16 + Release string + SerialNumber string + SupportsButtonHOTP bool + SupportsCCID bool + SupportsFIDO21 bool + SupportsFingerprintRegistration bool + SupportsHOTP bool + SupportsMandatoryFingerprint bool + SupportsNFC bool + SupportsTOTP bool + func Identify(serialNumber string) (DeviceInfo, bool) + func (info DeviceInfo) ModelName(fallback string) string + type FIDOVersion struct + Major byte + Minor byte + Patch byte