Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PACE Integrated mapping problem #131

Open
enaifuose opened this issue Feb 2, 2022 · 6 comments
Open

PACE Integrated mapping problem #131

enaifuose opened this issue Feb 2, 2022 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@enaifuose
Copy link

Hi,

first i wanna thank AndyQ for this greate work.

I try to read id card using PACE authentication method. firstly i have trouble to get cardAccess data but finnaly i resolved by setting the APDU request in readCardAccess methode by :

NFCISO7816APDU(instructionClass: 0x00, instructionCode: 0xA4, p1Parameter: 0x02, p2Parameter: 0x0C, data: Data([0x3f,0x00]), expectedResponseLength: 256)

neverthless, the PACE handler return the error PACEHandler: Step2IM - IM not yet implemented. see the image for the app log :

image

Please can anyone help me to do the Integrated mapping implimentation.

thanks.

@enaifuose
Copy link
Author

Hi,

still in trouble with this problem, any one can help.

@AndyQ
Copy link
Owner

AndyQ commented Feb 11, 2022

My issue is that I don't have access to any passports in order to add the IM yet! Its a little more complex than the GM.

@enaifuose
Copy link
Author

Thank you for your interest,

i do lot of research and finally i do some attempts to recreat the implimentation in JMRTD here :

https://github.com/rgex/JMRTD/blob/e551cd0105e4aed10371f80d38a32baefbeaded5/jmrtd/src/main/java/org/jmrtd/protocol/PACEProtocol.java#L506

unfortunately, i do not have any experience with cryptokit or openssl.

So, if you can do the implimentation in your SDK by swift, i can run the tests for you.

i m available,

cordialy.

@rbrouwer
Copy link

JMRTD's source code is located at the following location:
https://sourceforge.net/p/jmrtd/code/

So I would recommend using:
https://sourceforge.net/p/jmrtd/code/HEAD/tree/trunk/jmrtd/src/main/java/org/jmrtd/protocol/PACEProtocol.java
as code to look into.

@AndyQ
Copy link
Owner

AndyQ commented Feb 23, 2022

The problem is that you can't realistically implement it without being able to test as you go as each step depends on output from the previous, you can't capture anything repeatable as all the inputs change each time!

Now I could in theory take a guess at how it could work, push that out ask someone to test which would almost immediately fail and then go back-and-forth many times to figure out why (and then repeat), but sadly I don't have time/willingness to do that!

However, if anyone with a PACE-IM supported passport fancies implementing it - I'd be very very happy to receive a pull request!

@AndyQ AndyQ added enhancement New feature or request help wanted Extra attention is needed labels Jun 12, 2022
@longcon9999
Copy link

I always got error 6D 00 (Instruction code not supported or invalid) when select master file, so I can not using PACE. Please help me, @AndyQ . I also tried change cmd like @enaifuose but still did not work. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants