package
0.0.0-20230426181733-1153de682fc5
Repository: https://github.com/gridplus/keycard-go.git
Documentation: pkg.go.dev

# Functions

FindTag searches for a tag value within a TLV sequence.
FindTagN searches for a tag value within a TLV sequence and returns the n occurrence.
NewCommand returns a new apdu Command.
NewErrBadResponse returns a ErrBadResponse with the specified sw and message values.
ParseCommand parses a raw command and returns a Command.
ParseResponse parses a raw response and return a Response.

# Constants

SwOK is returned from smartcards as a positive response code.

# Variables

ErrBadRawCommand is an error returned by ParseCommand in case the command data is not long enough.
ErrBadRawResponse is an error returned by ParseResponse in case the response data is not long enough.
No description provided by the author
No description provided by the author

# Structs

Command struct represent the data sent as an APDU command with CLA, Ins, P1, P2, Lc, Data, and Le.
ErrBadResponse defines an error conaining the returned Sw code and a description message.
ErrTagNotFound is an error returned if a tag is not found in a TLV sequence.
Response represents a struct containing the smartcard response fields.

# Type aliases

No description provided by the author