Skip to content

0.1.4

Latest

Choose a tag to compare

@munkchunk munkchunk released this 01 Dec 17:16
· 2 commits to main since this release

Library

implementation("io.github.munkchunk:android-passport-reader:0.1.4")

Changed

  • Chip Authentication and Active Authentication are held to the keys the issuer signed. Each protocol proves that the chip holds the private key for the public key it presented. Now chipAuthentication and activeAuthentication succeed only when that key is in a file Passive Authentication verified: DG14 or DG15 exactly as EF.SOd signs it (EF.CardSecurity for PACE-CAM, as before), with EF.SOd's signature and certificate chain both holding.

    • FAILED when the key's file is not as EF.SOd signs it, or EF.SOd's signature does not verify. Active Authentication then sends no challenge.
    • NOT_CHECKED when the signature holds but no chain to a trusted CSCA can be built.
    • Otherwise, the protocol's own outcome, as before.

    Chip Authentication runs during the read, so only a success is held to the signed DG14 afterwards; a Chip Authentication that failed or never ran keeps its own verdict. Neither check relies on the chip answering a second read of a file the same way as the first.

  • When PACE-CAM was checked, its verdict decides chipAuthentication, and its reason names a DG14 failure if there was one. When PACE-CAM could not be checked, DG14's verdict stands.

A document whose chain does not build, for instance from one of the six countries with no trust anchor in the bundled list, can no longer pass these two checks: a key the chip proves is reported as NOT_CHECKED rather than SUCCEEDED. If your app treats them as required, decide how it handles that.

No public API changes. The bundled CSCA certificates are unchanged (BSI master list of 2026-10-01).

Sample app

passport-reader-sample-0.1.4.apk. It needs an NFC phone running Android 10 or later and has no network access. It installs over 0.1.3.

Check the download:

SHA-256  05d706e9edc2f355a42df8375b75b38e7326bdf047485f45ee59aa329c816f22

It is signed with this certificate (apksigner verify --print-certs):

CN=Iain Griffiths
SHA-256 04:C4:F9:CF:49:A5:E7:26:0D:65:60:F9:FB:09:CA:9D:82:02:A3:34:53:27:F8:DE:B9:18:8F:57:93:11:9D:4A

Known limitations

TD3 passports only; six countries have no trust anchor in the bundled CSCA list; Terminal Authentication is not reachable through the API yet; Active Authentication and PACE-CAM have not yet run against a real chip. See the README.