public final class DUKPT
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DUKPT.DerivationPurpose
Identifies if this derivation is to create an initial key or any other key type to help
select which derivation data table to use.
|
static class |
DUKPT.KeyType
KeyType defines the cryptographic key type being derived.
|
static class |
DUKPT.KeyUsage
KeyUsage defines the possible key usages that can be derived.
|
Constructor and Description |
---|
DUKPT() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
createDerivationData(DUKPT.DerivationPurpose derivationPurpose,
DUKPT.KeyUsage keyUsage,
DUKPT.KeyType derivedKeyType,
byte[] initialKeyID,
int counter) |
static byte[] |
deriveDataKey(byte[] ksn,
byte[] ipek) |
static byte[] |
deriveInitialKey(byte[] BDK,
DUKPT.KeyType keyType,
byte[] initialKeyID) |
static byte[] |
deriveIpek(byte[] bdk,
byte[] ksn) |
static byte[] |
deriveKey(byte[] ksn,
byte[] ipek) |
static byte[] |
deriveKey(byte[] derivationKey,
DUKPT.KeyType keyType,
byte[] derivationData) |
static byte[] |
deriveMacKey(byte[] ksn,
byte[] ipek) |
static byte[] |
derivePinKey(byte[] ksn,
byte[] ipek) |
static byte[] |
deriveWorkingKey(byte[] BDK,
DUKPT.KeyType deriveKeyType,
DUKPT.KeyUsage workingKeyUsage,
DUKPT.KeyType workingKeyType,
byte[] ksn) |
static byte[] |
deriveWorkingKey(byte[] BDK,
DUKPT.KeyType deriveKeyType,
DUKPT.KeyUsage workingKeyUsage,
DUKPT.KeyType workingKeyType,
byte[] initialKeyID,
int transactionCounter) |
public static byte[] deriveKey(byte[] ksn, byte[] ipek)
public static byte[] deriveDataKey(byte[] ksn, byte[] ipek)
public static byte[] derivePinKey(byte[] ksn, byte[] ipek)
public static byte[] deriveMacKey(byte[] ksn, byte[] ipek)
public static byte[] deriveIpek(byte[] bdk, byte[] ksn)
public static byte[] deriveKey(byte[] derivationKey, DUKPT.KeyType keyType, byte[] derivationData)
public static byte[] createDerivationData(DUKPT.DerivationPurpose derivationPurpose, DUKPT.KeyUsage keyUsage, DUKPT.KeyType derivedKeyType, byte[] initialKeyID, int counter)
public static byte[] deriveInitialKey(byte[] BDK, DUKPT.KeyType keyType, byte[] initialKeyID)
public static byte[] deriveWorkingKey(byte[] BDK, DUKPT.KeyType deriveKeyType, DUKPT.KeyUsage workingKeyUsage, DUKPT.KeyType workingKeyType, byte[] initialKeyID, int transactionCounter)
public static byte[] deriveWorkingKey(byte[] BDK, DUKPT.KeyType deriveKeyType, DUKPT.KeyUsage workingKeyUsage, DUKPT.KeyType workingKeyType, byte[] ksn)