Topic: Reading ePassport (MRTD) as per ICAO doc 9303

Re: Reading ePassport (MRTD) as per ICAO doc 9303

3 (edited by Papyrus 2014-03-20 14:58:43)

Re: Reading ePassport (MRTD) as per ICAO doc 9303

Re: Reading ePassport (MRTD) as per ICAO doc 9303

Okay so I figured it out!! From the PN532 command trace combined with the session details from my all purpose debug log, I started to write code to verify it. Half way through I realized my mistake, which was that the session keys are incorrect because I did not decrypt the entire mutual authenticate response as a 32 byte block but rather piecemeal, and since the MRTD's chip uses cipher-block-chaining the K.ICC was decrypted incorrectly, and thus my K.SEED was incorrect, ergo the session keys were wrong. I corrected that mistake and now I can read the EF.COM file!!

Re: Reading ePassport (MRTD) as per ICAO doc 9303

Glad you found out your issue :-)
Thanks for having shared the details.
Phil

Re: Reading ePassport (MRTD) as per ICAO doc 9303