Skip to main content

Crate talktosc

Crate talktosc 

Source
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.