Skip to content

Commit

Permalink
smconsole IK command: fix parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
barspi committed Jun 17, 2024
1 parent 4defbc6 commit 3e00c35
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 3e00c35

Please sign in to comment.