Crypto Port
Defines a contract for cryptographic operations (TDES encryption/decryption, PIN capture, key management) using either DUKPT or MK/SK schemes within a secure element.
Functions
Securely captures a PIN from the user, encrypts it using a specified key, and writes the resulting PIN block into baPinBlock.
Encrypts or decrypts data using the Triple DES (TDES) algorithm with either a DUKPT key or a session key derived from a master key (MK/SK). The operation mode, cipher mode, key type, and other parameters determine the exact cryptographic context.
Retrieves the current Key Serial Number (KSN) for a DUKPT key. If the required key does not exists it must not throw a exception, instead it must return an empty Byte Array
Increments the Key Serial Number (KSN) for a DUKPT key identified by eKeyPurpose and iKeyIndex.
Checks if a cryptographic key of a specific type, purpose, and index is present in the secure element.