Documentation
¶
Overview ¶
Package protocol defines the Token2 commands shared by transport adapters.
Index ¶
- Constants
- func ConfigurationCommand() iso7816.Command
- func LegacySerialNumberPreludeCommand() iso7816.Command
- func ReaderNFCCommand(enabled bool) iso7816.Command
- func ReaderSoundCommand(level byte) iso7816.Command
- func SelectFIDOCommand() iso7816.Command
- func SelectOTPCommand() iso7816.Command
- func SerialNumberCommand(encoding iso7816.Encoding) iso7816.Command
Constants ¶
View Source
const (
// SerialResponseTag identifies the serial-number TLV returned by the device.
SerialResponseTag = 0xd1
)
Variables ¶
This section is empty.
Functions ¶
func ConfigurationCommand ¶
ConfigurationCommand reads the Token2 device configuration.
func LegacySerialNumberPreludeCommand ¶
LegacySerialNumberPreludeCommand primes the device-information command on firmware releases such as R3.1 which initially reject it with 6D00.
func ReaderNFCCommand ¶
ReaderNFCCommand enables or disables the Token2 reader NFC interface.
func ReaderSoundCommand ¶
ReaderSoundCommand configures the Token2 reader sound level.
func SelectFIDOCommand ¶
SelectFIDOCommand selects the standard FIDO application used by the Token2 serial-number command over PC/SC.
func SelectOTPCommand ¶
SelectOTPCommand selects the Token2 OTP application used by configuration and initial serial-number commands.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.