dmrtd 0.3.2

eMRTD / ICAO 9303 reader core in pure Rust — BAC, PACE (ECDH-GM P-256), MRZ, LDS parsing, secure messaging. Transport-agnostic (NFC plugs in via a Transceiver trait).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! EF.DG6 — reserved for future use per ICAO 9303 p10.

use crate::dg_stub;

dg_stub!(EfDG6, 0x0106, 0x06, 0x66);

#[cfg(test)]
mod tests {
    use super::*;
    use crate::lds::tlv::Tlv;

    #[test]
    fn parses_valid_wrapper() {
        let bytes = Tlv::encode(0x66, &[0x00]);
        assert!(EfDG6::from_bytes(bytes).is_ok());
    }
}