Expand description
This crate defines APDUs and related functions to talk to the OpenPGP applet on a smartcard.
Right now it is in the inital stage of the development.
Modules§
- apdus
- Module apdus helps to create new APDUs. We have many
create_*functions to help to create predefined APDU structs. - errors
- Module Errors for the talktosc project
- response
- Module to parse the response and makes sense of them.
- tlvs
- This module implements ISO7816 TLV format.
Functions§
- create_
connection - Creates a new connection to the card attached to the first reader and returns the connection, or the related error.
- create_
connection_ by_ ident - Creates a connection to the card matching the given ident.
- disconnect
- Disconnects the card cleanly via
Disposition::LeaveCard. - entry
- get_
card_ ident_ from_ card - Returns the unique ident for a connected card.
- list_
cards - Lists all connected OpenPGP smart cards with their idents.
- list_
readers - Returns a list of all available smart card reader names connected to the system.
- send_
and_ parse - Sends an APDU to the card and parses the response.
- sendapdu
- Sends the given APDU to the card and returns the raw response bytes.