Documentation
¶
Overview ¶
Package protocol defines the Token2 commands shared by transport adapters.
Index ¶
Constants ¶
View Source
const (
// SerialResponseTag identifies the serial-number TLV returned by the device.
SerialResponseTag = 0xd1
)
Variables ¶
This section is empty.
Functions ¶
func ConfigCommand ¶
ConfigCommand reads the Token2 device configuration.
func LegacySerialNumberPreludeCommand ¶
LegacySerialNumberPreludeCommand primes the device-information command on firmware revisions such as R3.1 which initially reject it with 6D00.
func SelectOTPCommand ¶
SelectOTPCommand selects the Token2 OTP application used by configuration and device-information commands.
func SerialNumberCommand ¶
SerialNumberCommand reads the full device serial number. HID uses extended APDU encoding while PC/SC uses short encoding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.