The ACRDukptReceiver
class generates the future keys according to ANSI X9.24-1:2009.
More...
#import <ACRDukptReceiver.h>
The ACRDukptReceiver
class generates the future keys according to ANSI X9.24-1:2009.
- Author
- Godfrey Chung
- Version
- 1.0, 25 Mar 2014
◆ compareKeySerialNumber:ksn1Length:ksn2:ksn2Length:()
+ (BOOL) compareKeySerialNumber: |
|
(const uint8_t *) |
ksn1 |
ksn1Length: |
|
(NSUInteger) |
ksn1Length |
ksn2: |
|
(const uint8_t *) |
ksn2 |
ksn2Length: |
|
(NSUInteger) |
ksn2Length |
|
|
| |
Compares the tow key serial numbers.
- Parameters
-
ksn1 | the first key serial number. |
ksn1Length | the first key serial number length. |
ksn2 | the second key serial number. |
ksn2Length | the second key serial number length. |
- Returns
YES
if the two key serial numbers are equal, otherwise NO
.
◆ compareKeySerialNumber:ksn2:()
+ (BOOL) compareKeySerialNumber: |
|
(NSData *) |
ksn1 |
ksn2: |
|
(NSData *) |
ksn2 |
|
|
| |
Compares the tow key serial numbers.
- Parameters
-
ksn1 | the first key serial number. |
ksn2 | the second key serial number. |
- Returns
YES
if the two key serial numbers are equal, otherwise NO
.
◆ dataEncryptionRequestKeyFromKey:()
+ (NSData *) dataEncryptionRequestKeyFromKey: |
|
(NSData *) |
key |
|
Generates the data encryption request key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
- Returns
- the data encryption request key.
◆ dataEncryptionRequestKeyFromKey:length:()
Generates the data encryption request key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
length | the key length. |
- Returns
- the data encryption request key.
◆ dataEncryptionResponseKeyFromKey:()
+ (NSData *) dataEncryptionResponseKeyFromKey: |
|
(NSData *) |
key |
|
Generates the data encryption response key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
- Returns
- the data encryption response key.
◆ dataEncryptionResponseKeyFromKey:length:()
Generates the data encryption response key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
length | the key length. |
- Returns
- the data encryption response key.
◆ encryptionCounter()
- (NSUInteger) encryptionCounter |
|
|
|
Gets the encryption counter.
- Returns
- the encryption counter.
◆ encryptionCounterFromKeySerialNumber:()
+ (NSUInteger) encryptionCounterFromKeySerialNumber: |
|
(NSData *) |
ksn |
|
Gets the encryption counter from the key serial number.
- Parameters
-
ksn | the key serial number. The length must be 10 bytes. |
- Returns
- the encryption counter.
◆ encryptionCounterFromKeySerialNumber:length:()
Gets the encryption counter from the key serial number.
- Parameters
-
ksn | the key serial number. The length must be 10 bytes. |
length | the key serial number length. |
- Returns
- the encryption counter.
◆ key()
Gets the key.
- Returns
- the key.
nil
if the maximum encryption count had been reached.
◆ keySerialNumber()
- (NSData *) keySerialNumber |
|
|
|
Gets the key serial number.
- Returns
- the key serial number.
◆ loadInitialKey:()
- (void) loadInitialKey: |
|
(NSData *) |
initialKey |
|
Loads the initial key.
- Parameters
-
initialKey | the initial key. The length must be 16 bytes. |
◆ loadInitialKey:length:()
- (void) loadInitialKey: |
|
(const uint8_t *) |
initialKey |
length: |
|
(NSUInteger) |
length |
|
|
| |
Loads the initial key.
- Parameters
-
initialKey | the initial key. The length must be 16 bytes. |
length | the initial key length. |
◆ macFromData:dataLength:key:keyLength:()
+ (NSData *) macFromData: |
|
(const uint8_t *) |
data |
dataLength: |
|
(NSUInteger) |
dataLength |
key: |
|
(const uint8_t *) |
key |
keyLength: |
|
(NSUInteger) |
keyLength |
|
|
| |
Generates the MAC from the data.
- Parameters
-
data | the data. |
dataLength | the data length. |
key | the key. The length must be 16 bytes. |
keyLength | the key length. |
- Returns
- the MAC.
◆ macFromData:key:()
+ (NSData *) macFromData: |
|
(NSData *) |
data |
key: |
|
(NSData *) |
key |
|
|
| |
Generates the MAC from the data.
- Parameters
-
data | the data. |
key | the key. The length must be 16 bytes. |
- Returns
- the MAC.
◆ macRequestKeyFromKey:()
+ (NSData *) macRequestKeyFromKey: |
|
(NSData *) |
key |
|
Generates the MAC request key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
- Returns
- the MAC request key.
◆ macRequestKeyFromKey:length:()
Generates the MAC request key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
length | the key length. |
- Returns
- the MAC request key.
◆ macResponseKeyFromKey:()
+ (NSData *) macResponseKeyFromKey: |
|
(NSData *) |
key |
|
Generates the MAC response key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
- Returns
- the MAC response key.
◆ macResponseKeyFromKey:length:()
Generates the MAC response key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
length | the key length. |
- Returns
- the MAC response key.
◆ pinEncryptionKeyFromKey:()
+ (NSData *) pinEncryptionKeyFromKey: |
|
(NSData *) |
key |
|
Generates the PIN encryption key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
- Returns
- the PIN encryption key.
◆ pinEncryptionKeyFromKey:length:()
Generates the PIN encryption key from the key.
- Parameters
-
key | the key. The length must be 16 bytes. |
length | the key length. |
- Returns
- the PIN encryption key.
◆ setKeySerialNumber:()
- (void) setKeySerialNumber: |
|
(NSData *) |
keySerialNumber |
|
Sets the key serial number.
- Parameters
-
keySerialNumber | the key serial number. |
◆ setKeySerialNumber:length:()
Sets the key serial number.
- Parameters
-
keySerialNumber | the key serial number. |
length | the key serial number length. |
The documentation for this class was generated from the following file: