Skip to content

Commit

Permalink
martinpaljak#153: Fix false assumption that INS_DELETE does not requi…
Browse files Browse the repository at this point in the history
…re zero-length of DM token to be transmitted
  • Loading branch information
gregorjohannson committed Mar 21, 2019
1 parent dfce1b7 commit 11e6b9d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/pro/javacard/gp/GlobalPlatform.java
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,6 @@ private ResponseAPDU transmitLV(CommandAPDU command) throws CardException {
}

private ResponseAPDU transmitDM(CommandAPDU command) throws CardException {
if (!tokenGenerator.hasKey() && command.getINS() == INS_DELETE) {
//Only add token bytes to INS_DELETE if key exists for token calculation, since token is optional
return transmitLV(command);
}
command = tokenGenerator.applyToken(command);
return transmitLV(command);
}
Expand Down

0 comments on commit 11e6b9d

Please sign in to comment.