13.7 IDT_NEO2 Class Reference
109
• 0x0004: Invalid Parameter: wrong parameter - RETURN_CODE_ERR_INVALID_PARAMETER
• 0x0005: MSR Busy: SDK is doing MSR or ICC task - RETURN_CODE_SDK_BUSY_MSR
• 0x0006: PINPad Busy: SDK is doing PINPad task - RETURN_CODE_SDK_BUSY_PINPAD
• 0x0007: Unknown: Unknown error - RETURN_CODE_ERR_OTHER
• 0x0100 through 0xFFFF refer to IDT_Device::getResponseCodeString:()
13.7.2.59
- (RETURN_CODE) emv_setCAPKFile: (NSData
∗
)
file
Set Certificate Authority Public Key
Sets the CAPK as specified by the
raw format
Parameters
key
format: [5 bytes RID][1 byte Index][1 byte Hash Algorithm][1 byte Encryption Algorithm][20 bytes
HashValue][4 bytes Public Key Exponent][2 bytes Modulus Length][Variable bytes Modulus] Where:
• Hash Algorithm: The only algorithm supported is SHA-1.The value is set to 0x01
• Encryption Algorithm: The encryption algorithm in which this key is used. Currently support only
one type: RSA. The value is set to 0x01.
• HashValue: Which is calculated using SHA-1 over the following fields: RID & Index & Modulus &
Exponent
• Public Key Exponent: Actually, the real length of the exponent is either one byte or 3 bytes. It can
have two values: 3 (Format is 0x00 00 00 03), or 65537 (Format is 0x00 01 00 01)
• Modulus Length: LenL LenH Indicated the length of the next field.
• Modulus: This is the modulus field of the public key. Its length is specified in the field above.
Returns
RETURN_CODE: Values can be parsed with errorCode.getErrorString()
13.7.2.60
- (RETURN_CODE) emv_setCRLEntries: (NSData
∗
)
data
Set Certificate Revocation List
Sets the CRL list
Parameters
data
CRLEntries as a repeating occurance of CRL: CRL1 CRL2 . . . CRLn. CRL format is
• 5Bytes RID
• 1Byte CA public key Index
• 3Bytes Certificate Serial Number
IDTech iOS SDK Guide for NEO2 #80152802-001