Skip to content

Commit

Permalink
Merge pull request #599 from barspi/next
Browse files Browse the repository at this point in the history
smconsole IK command: fix parameter order
  • Loading branch information
ar authored Jul 8, 2024
2 parents 79251fd + d994a16 commit cadf90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jpos/src/main/java/org/jpos/security/jceadapter/Console.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ else if (commandName.toUpperCase().compareTo("CK") == 0) {
new SecureDESKey(keyLength,commandParams[1].toUpperCase(), commandParams[2],""));
}
else if (commandName.toUpperCase().compareTo("IK") == 0) {
SecureDESKey KEKunderLMK = new SecureDESKey((short)Integer.parseInt(commandParams[3]),
commandParams[4].toUpperCase(), commandParams[5], commandParams[6]);
SecureDESKey KEKunderLMK = new SecureDESKey((short)Integer.parseInt(commandParams[4]),
commandParams[5].toUpperCase(), commandParams[6], commandParams[7]);
sm.importKey(keyLength, commandParams[1].toUpperCase(),
ISOUtil.hex2byte(commandParams[2]), KEKunderLMK, true);
}
Expand Down

0 comments on commit cadf90f

Please sign in to comment.