Expand description
§winscard-rs
Modules§
- tlv_
tags - Constants with most popular tags used in this PIV smart card implementation.
- winscard
- The winscard module contains traits for easier interop between WinSCard API and our emulated scard.
Structs§
- Error
- Represents general WinSCard error.
- Reader
- Describes a smart card reader.
- Response
- Represents a response after the APDU command execution.
- Scard
Context - Represents the resource manager context (the scope).
- Smart
Card - Emulated smart card.
- Smart
Card Info - Describes smart card info used for the smart card creation.
Enums§
- Error
Kind - Smart Card Return Values.
- Status
- Represents Status Word (SW) - a 2-byte value returned by a card command at the card edge. Table 6. Status Words
Constants§
- ATR
- The original winscard ATR is not suitable because it contains AID bytes. So we need to construct our own. Read more about our constructed ATR string: https://smartcard-atr.apdu.fr/parse?ATR=3B+8D+01+80+FB+A0+00+00+03+08+00+00+10+00+01+00+4D
- CHUNK_
SIZE - The max amount of data one APDU response can transmit.
- DEFAULT_
CARD_ NAME - Default name of the emulated smart card.
- MICROSOFT_
DEFAULT_ CSP - Default CSP name.
- MICROSOFT_
DEFAULT_ KSP - Default KSP name.
- MICROSOFT_
SCARD_ DRIVER_ LOCATION - Default smart card driver location.
- PIV_AID
- NIST.SP.800-73-4, part 1, section 2.2.
- SUPPORTED_
CONNECTION_ PROTOCOL - Supported connection protocol in emulated smart cards.
Functions§
- ber_
tlv_ length_ encoding - Encodes the length in BER encoding.
Type Aliases§
- WinScard
Result - The WinScardResult type.