Skip to main content

Crate dmrtd

Crate dmrtd 

Source
Expand description

§dmrtd — eMRTD (ICAO 9303) reader core (pure Rust)

BAC / PACE (ECDH-GM P-256), MRZ, LDS (DG1..DG16, SOD) parsing, secure messaging, and the high-level passport::Passport API. Transport-agnostic: NFC plugs in via the com::Transceiver trait. No async, no NFC deps.

Extracted from wearekesk/kyc-rs. DMRTD — eMRTD (ICAO 9303) reader core.

Modules§

auth
Chip authentication — proving the chip is genuine, and proving its data is.
com
Transceiver — the I/O boundary between this crate and the NFC transport.
crypto
Cryptographic primitives for DMRTD.
extension
Extension traits for standard types.
lds
Logical Data Structure (LDS) types for DMRTD.
passport
High-level eMRTD passport API.
proto
DMRTD protocol layer.
types
Core types used throughout the DMRTD library.
utils
General utility functions.

Macros§

dg_stub
Generates a minimal data-group struct that stores its raw bytes and validates only the outer TLV tag. Used by the content-free DG types (DG3-10, DG13, DG14, DG16) whose ports are stubs.
sd_debug
Emits a debug-level log record only when sensitive-data logging is enabled.
sd_error
Emits an error-level log record only when sensitive-data logging is enabled.
sd_info
Emits an info-level log record only when sensitive-data logging is enabled.
sd_trace
Emits a trace-level log record only when sensitive-data logging is enabled (i.e. log_sensitive_data() returns true).
sd_warn
Emits a warn-level log record only when sensitive-data logging is enabled.