13.7 IDT_NEO2 Class Reference
89
Returns
RETURN_CODE: Return codes listed as typedef enum in IDTCommon:RETURN_CODE. Values can be
parsed with
13.7.2.15
- (RETURN_CODE) ctls_setApplicationData: (NSData
∗
)
tlv
Set Application Data by AID
Sets the Application Data for CTLS as specified by TLV data
Parameters
tlv
Application data in TLV format The first tag of the TLV data must be the group number (DFEE2D). The
second tag of the TLV data must be the AID (9F06)
Example valid TLV, for Group #2, AID a0000000035010: "DFEE2D01029f0607a0000000051010DFEE4B0101D
←
-
FEE2E0110DFEE4D0114DFEE4C0106"
Returns
RETURN_CODE: Return codes listed as typedef enum in IDTCommon:RETURN_CODE. Values can be
parsed with
13.7.2.16
- (RETURN_CODE) ctls_setCAPK: (NSData
∗
)
key
Set Certificate Authority Public Key
Sets the CAPK for CTLS as specified by the
structure
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.17
- (RETURN_CODE) ctls_setConfigurationGroup: (NSData
∗
)
tlv
Set Configuration Group
IDTech iOS SDK Guide for NEO2 #80152802-001