![IDTECH Vivopay Neo 2 Developer'S Manual Download Page 174](http://html.mh-extra.com/html/idtech/vivopay-neo-2/vivopay-neo-2_developers-manual_618786174.webp)
NEO 2 Interface Developer’s Guide
Copyright © 2019, International Technologies & Systems Corporation. All rights reserved.
174
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14 …
Byte 14+n-1
Byte 14+n Byte 15+n
Header Tag
& Protocol
Version
Command Status Code
Data
Length
(MSB)
Data
Length
(LSB)
Data
CRC (MSB)
CRC
(LSB)
ViVOtech2\0
60h
See Status
Code Table
00h
00h
Note:
•
If CA Key RID does not exist, status code is 0x60.
•
If CA Key Index does not exist, status code is 0x60.
8.4.12.
Contact Set CA Public Key (60-0A)
This command adds a new key to reader. Maximum is 16 sets.
Command Frame
Byte 0-9
Byte 10
Byte 11
Byte 12 Byte 13
Byte 14 …
Byte 14+n-1
Byte 14+n Byte 15+n
Header Tag
& Protocol
Version
Command
Sub-
Command
Data
Length
(MSB)
Data
Length
(LSB)
Data
CRC (LSB)
CRC (MSB)
ViVOtech2\0
60h
0Ah
Data Objects
Data Objects
<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, or 65537
•
<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.
Response Frame