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.
- disconnect
- Disconnects the card via Disposition::LeaveCard
- entry
- send_
and_ parse - Helper function to send the APDU and returns the a Result<Response, errors::TalktoSCError>.
- sendapdu
- Sends the given APDU (if required in chained way) to the card and returns the response as a
vector of
u8
.