Crt Vavros

Results 50 comments of Crt Vavros

Closing this issue as no further info was provided.

Fyi library only supports biometric passport standard ICAO 9303 aka MRTD. Your ID card has to support this standar in order to read it with this library.

From provided screenshot I can only guess that your card doesn't support selecting master file. What you can try is comment out these 2 lines: https://github.com/ZeroPass/dmrtd/blob/a9766109b30ca26a081c7079b508ee271727313b/lib/src/passport.dart#L409-L410

Might be related to this: https://github.com/AndyQ/NFCPassportReader/issues/219 If you're trying to read ID with iPhone iOS >= 16 it might be related to this issue: https://github.com/AndyQ/NFCPassportReader/issues/164#issuecomment-2139300643

> ... but your app send 00a40000 response 6a86. Yes, this should be one of the valid SELECT FILE commands for selecting the master file. From your log, you can...

Are there any additional error/warning entries in the log? Which algorithm is used to establish PACE session?

Can you test if it makes any difference changing aes key length to `KEY_LENGTH.s256` in [PACE.decryptNonce:583](https://github.com/ZeroPass/dmrtd/blob/8ced7600fb9fd84f0824bfaddc2fcc7bff655a7f/lib/src/proto/pace.dart#L583) _Also word of advice, you're logging on the finest level which might leak sensitive...

Looking at your second log, I see that AES128 was selected. This happens here: https://github.com/ZeroPass/dmrtd/blob/8ced7600fb9fd84f0824bfaddc2fcc7bff655a7f/lib/src/proto/pace.dart#L547 Did you try changing the key size to 256 (KEY_LENGTH.s256)? >However, when I try it...

Looking at pointycastle code that you linked it's definitively wrong IV size for block cipher modes. There is already issue for this but no response yet: https://github.com/bcgit/pc-dart/issues/200

Just to be clear, you had to add nfc entitlement to the iso project, is that right (like the [example app](https://github.com/ZeroPass/dmrtd/blob/master/example/ios/Runner/Runner.entitlements))?