Skip to content

Commit

Permalink
Merge pull request #598 from barspi/master
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 676de8b + 3e00c35 commit 73e6213
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 73e6213

Please sign in to comment.