Documentation ¶
Overview ¶
package to handle the communication of smartcard devices under the PCSC implementation
projects on which it is based:
https://github.com/LudovicRousseau/PCSC https://github.com/ebfe/scard
package to handle the communication of smartcard devices under the PCSC implementation
projects on which it is based:
https://github.com/LudovicRousseau/PCSC https://github.com/ebfe/scard
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrComm = Error(errors.New("error communication"))
View Source
var ErrNoSmartcard = Error(errors.New("error no smartcard"))
View Source
var ErrSharingViolation = Error(errors.New("error sharing violation"))
View Source
var ErrTransmit = Error(errors.New("error transmit"))
Functions ¶
Types ¶
type ICard ¶
type ICard interface { Apdu(apdu []byte) ([]byte, error) ATR() ([]byte, error) GetData(byte) ([]byte, error) UID() ([]byte, error) ATS() ([]byte, error) SAK() byte DisconnectCard() error DisconnectResetCard() error EndTransactionResetCard() error }
ICard Interface
type IReader ¶
type IReader interface { //ConnectCard connect card with protocol T=1 ConnectCard() (ICard, error) //ConnectCard connect card with protocol T=1. //Some readers distinguish between the flow to connect a contact-based smart card and a contactless smart card. ConnectSamCard() (ICard, error) //ConnectSamCard_T0 ConnectCard connect card with protocol T=1. ConnectSamCard_T0() (ICard, error) //ConnectSamCard_Tany ConnectCard connect card with protocol T=any. ConnectSamCard_Tany() (ICard, error) }
IReader Interface to Reader device
type ISO7816cmd ¶
ISO7816cmd command ISO7816
func (*ISO7816cmd) PrefixApdu ¶
func (cmd *ISO7816cmd) PrefixApdu() []byte
PrefixApdu build prefix apdu from ISO7816cmd
type SmartcardError ¶
type SmartcardError struct {
Err error
}
func (*SmartcardError) Error ¶
func (e *SmartcardError) Error() string
Directories ¶
Path | Synopsis |
---|---|
* package to handle the communication of smartCard devices under the PCSC implementation
|
* package to handle the communication of smartCard devices under the PCSC implementation |
mifare
* Implementation to mifare smartcard family (Mifare Plus, Desfire, SamAV2, ...) /*
|
* Implementation to mifare smartcard family (Mifare Plus, Desfire, SamAV2, ...) /* |
mifare/desfire/ev2
* package with common functions to manage a Desfire TAG
|
* package with common functions to manage a Desfire TAG |
* package to handle the communication of smartcard devices under the PCSC implementation
|
* package to handle the communication of smartcard devices under the PCSC implementation |
planeta
|
|
samfarmbin
* this app implements a SAMav2 cluster through MQTT topics
|
* this app implements a SAMav2 cluster through MQTT topics |
Click to show internal directories.
Click to hide internal directories.