increment KSN
Increments the Key Serial Number (KSN) for a DUKPT key identified by eKeyPurpose and iKeyIndex.
In DUKPT schemes, incrementing the KSN ensures unique transaction keys for each operation. This method advances the KSN’s transaction counter as required by DUKPT.
Parameters
e Key Purpose
The DUKPT key purpose (CryptoKeyPurpose).
i Key Index
The index of the DUKPT key (0–99).
Throws
If the key is not a valid DUKPT key, does not exist, or the KSN cannot be incremented.