Created
December 10, 2019 16:52
-
-
Save typelogic/0b2f928f21da68d4e8c7ff446beaf1cd to your computer and use it in GitHub Desktop.
how to use gp.jar as a library flexible enough to have this flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /atr | |
| /card | |
| /select F76964706173730101000101 | |
| set-key 0/1/DES-ECB/404142434445464748494a4b4c4d4e4f 0/2/DES-ECB/404142434445464748494a4b4c4d4e4f 0/3/DES-ECB/404142434445464748494a4b4c4d4e4f | |
| init-update 0 | |
| ext-auth enc | |
| send 001A0000 *9000 | |
| send "002A0000#(8200910210007F2E868184268B8129A7402DAC91335793342B8437814237C24238D34238E0423EEE423F4F43433F44521A45662D956D664470745379F2527DE64286EF42905B8697939297A0919AF3929F8D94A2878FA3948FA4A250AB854CB0C651B8CF41B8DA51CAA050D03C4CD54D5DD7175BDBBB50E0255CE5415DE72C4CE7FE41F1B05EF2914EF9C880FC258B)" *9000 | |
| /atr | |
| /card | |
| /select F76964706173730101000101 | |
| set-key 0/1/DES-ECB/404142434445464748494a4b4c4d4e4f 0/2/DES-ECB/404142434445464748494a4b4c4d4e4f 0/3/DES-ECB/404142434445464748494a4b4c4d4e4f | |
| init-update 0 | |
| ext-auth mac | |
| send 001B0000 *9000 |
Author
Author
I tried to use gp.jar in this minimal test java code. The problem is in step#3 after the secure channel is done I send an apdu and I get 0x6E00.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current attempting to convert the above jcop shell jcsh script into its java equivalent by using
gp.jarto talk to an NXP javacard. Sample test app logs https://gist.github.com/typelogic/93b0a86ce4a196abaa5e8d24b991a97d. From the log, after the open secure channel, the applet is deselected.