Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gwachob committed Jan 23, 2022
1 parent 86ebbda commit 9620381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/pro/javacard/gp/GPSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public void openSecureChannel(GPCardKeys keys, GPSecureChannelVersion scp, byte[

// P1 key version (all)
// P2 either key ID (SCP01) or 0 (SCP02)
CommandAPDU initUpdate = new CommandAPDU(CLA_GP, INS_INITIALIZE_UPDATE, keys.getKeyInfo().getVersion(), scp.scp == GPSecureChannelVersion.SCP.SCP01 ? keys.getKeyInfo().getID() : 0, host_challenge, 256);
CommandAPDU initUpdate = new CommandAPDU(CLA_GP, INS_INITIALIZE_UPDATE, keys.getKeyInfo().getVersion(), (scp != null && scp.scp == GPSecureChannelVersion.SCP.SCP01) ? keys.getKeyInfo().getID() : 0, host_challenge, 256);

ResponseAPDU response = channel.transmit(initUpdate);
int sw = response.getSW();
Expand Down

0 comments on commit 9620381

Please sign in to comment.