Skip to main content

Crate rdnie

Crate rdnie 

Source
Expand description

Driver for the Spanish electronic ID card (DNIe) that talks APDU to the card, without PKCS#11 or system drivers.

Structs§

Atr
A card’s Answer To Reset, as JMulticard’s Atr; displays itself as DnieAtr.toString.
Holder
Holder data in the subject of a DNIe certificate; a field the subject lacks is None.
KeyReference
Private key on the card, as the PrKDF describes it.
PcscTransport
PC/SC transport: PCSC.framework on macOS, WinSCard on Windows and pcsc-lite on Linux.
Pin
The holder’s PIN, wiped from memory when dropped.
Session
Session with a DNIe 3.0/4.0 over any Transport.
StatusWord
SW1-SW2 status word.

Enums§

DigestAlgorithm
Digest algorithm of the digest to sign.
Error
Failures talking to the DNIe.
KeyGeneration
Key generation the DGP issued the terminal keys in.

Constants§

INTERMEDIATE_CA_LABEL
Label of the DNIe intermediate CA certificate, which has no key on the card.
SIGNATURE_LABEL
Label of the holder’s signature certificate, whose key signs.

Traits§

Port
Sends bytes to the card inside a Transport::transaction.
Transport
The connection to the card: PC/SC in production, an emulator in tests.