Skip to content

Files

Latest commit

780cc7c · Feb 27, 2024

History

History
This branch is 2 commits ahead of, 43 commits behind frankmorgner/vsmartcard:master.

pcsc-relay

PC/SC Relay

Welcome to PC/SC Relay. The purpose of PC/SC Relay is to relay a smart card using an contact-less interface. Currently the following contact-less emulators are supported:

Command APDUs are received with the contact-less interface and relayed. The Response APDUs are then sent back via RFID. The contact-less data will be relayed to one of the following connectors:

  • to a real smart card inserted into one of the systems' smart card readers. The smart card reader must be accessible with PC/SC. The smart card may be contact-based or contact-less.
  • to a virtual smart card that directly connects to pcsc-relay. The virtual smart card's native interface is used and (despite its name) PC/SC Relay does not need to access PC/SC in this case.
 ┌────────┐          ┌──────────┐          ┌─────────┐
 │Emulator│          │pcsc-relay│          │Connector│
 └───┬────┘          └────┬─────┘          └────┬────┘
     │    Command APDU    │                     │     
     │ ───────────────────>                     │     
     │                    │ ───────────────────>│     
     │                    │ <───────────────────│     
     │    Response APDU   │                     │     
     │ <───────────────────                     │     
 ┌───┴────┐          ┌────┴─────┐          ┌────┴────┐
 │Emulator│          │pcsc-relay│          │Connector│
 └────────┘          └──────────┘          └─────────┘