Skip to content

Commit

Permalink
NeoPGPApplet: fix AID registration for ACOSJ cards
Browse files Browse the repository at this point in the history
ACOSJ cards differ from JCOS cards in handling the .register() call as
they don't use the AID from the GlobalPlatform create call. Explicitly
pass the AID to the .register() call.

Signed-off-by: Michael Walle <[email protected]>
  • Loading branch information
mwalle committed Mar 21, 2024
1 parent 65b172c commit 6ccee8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/walle/neopgp/NeoPGPApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public static void install(byte[] buf, short off, byte len) {

NeoPGPApplet app = new NeoPGPApplet(buf, (short)(paramsOffset + 1), paramsLength);

app.register();
app.register(buf, (short)(off + 1), buf[off]);
app.reset();
}

Expand Down

0 comments on commit 6ccee8a

Please sign in to comment.