Documentation
¶
Overview ¶
Package apdu implements the ISO/IEC 7816-4 command and response APDU subset used by Token2 devices.
Index ¶
Constants ¶
View Source
const ( // StatusSuccess is the ISO/IEC 7816 success status word. StatusSuccess uint16 = 0x9000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command describes a command APDU. The encoder supports the cases currently used by Token2: a four-byte header with optional short or extended data.
type Response ¶
Response is a parsed response APDU.
func Exchange ¶
Exchange sends command and follows ISO GET RESPONSE status words until the device returns a final response.
func ParseResponse ¶
ParseResponse separates response data from the trailing status word.
type StatusError ¶
StatusError reports a non-success APDU status for a logical operation.
func (*StatusError) Error ¶
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.