#communicating #helper #utilities #emrtd #epassports #mrtd

mrtd1

Helper utilities for communicating with eMRTDs / ePassports

2 releases

0.1.2 Dec 8, 2022
0.1.1 Dec 7, 2022
0.1.0 Dec 7, 2022

#8 in #communicating

Download history 44/week @ 2024-02-13 8/week @ 2024-02-20 25/week @ 2024-02-27

77 downloads per month
Used in nfc1

MIT license

71KB
1.5K SLoC

mrtd

Helper utilities for communicating with eMRTDs / ePassports

Warning This library is not currently intended for any production use. You have been warned.

Usage

See https://github.com/alexrsagen/rs-nfc example read_mrtd for example usage.

TODO

Feel free to submit a PR for any of these tasks:

  • Improve error reporting
    • Remove all use of format!() or static strings for errors.
    • Replace all use of BoxError/BoxResult with a better error type (like src/mrz/error.rs)
  • Add tests
    • Specifically test use of DO'85' in apdu::command::borrowed::ApduCommand::to_protected and apdu::response::owned::ApduResponse::from_protected. Not sure if this is working or done correctly.
  • Add fuzzing
  • Make more use of external crates, where suitable (improved code quality, readability, functionality, etc)

Dependencies

~1.9–2.7MB
~48K SLoC