![IDTECH Vivopay Neo 2 Скачать руководство пользователя страница 248](http://html.mh-extra.com/html/idtech/vivopay-neo-2/vivopay-neo-2_developers-manual_618786248.webp)
NEO 2 Interface Developer’s Guide
Copyright © 2019, International Technologies & Systems Corporation. All rights reserved.
248
When the status is successful (00h), the data field contains:
•
Key Hash Algorithm
(1 Byte) - 01h = SHA-1
•
Key Encryption Algorithm
(1 Byte) – 01h = RSA
•
Checksum
– This Checksum is calculated with a concatenation of:
•
RID
&
KeyIndex
&
Modulus
&
Exponent
•
where the exponent is either one byte or 3 bytes
•
Modulus Length
(2 bytes)
•
Modulus
(varies in length)
8.7.2.
Get CA Public Key Hash (D0-02)
This command returns only the “Checksum” portion of the key.
Command Frame
Byte 0-9
Byte 10 Byte 11 Byte 12 Byte 13
Byte 14 –
18
Byte 19
Byte 20 Byte 21
Header Tag &
Protocol Version
Cmd
Sub
Cmd
Length
(MSB)
Length
(LSB)
RID
Key
Index
CRC
(LSB)
CRC
(MSB)
ViVOtech2\0
D0h
02h
00h
06h
varies
varies
Varies
Varies
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12 Byte 13
Byte 19 – n
Byte n+1 Byte n+2
Header Tag &
Protocol Version
Cmd
status
Length
(MSB)
Length
(LSB)
Data
CRC
(LSB)
CRC
(MSB)
ViVOtech2\0
D0h
00h
varies
varies
Varies
Varies
Status = 00 if successful. When the status is successful, the data contains:
•
Key Hash Algorithm (1 byte)
•
Key Algorithm (1 byte)
•
Checksum
(20 bytes) – calculated over the key information as previously described
8.7.3.
Set CA Public Key (D0-03)
This command adds a new key in the reader.
Command Frame
Byte 0-9
Byte 10 Byte 11 Byte 12 Byte 13 Byte 14 – 18
Byte 19
Bytes
19-n
Byte
n+1
Byte
n+2
Header Tag &
Protocol Version
Cmd
Sub
Cmd
Length
(MSB)
Length
(LSB)
RID
(5 bytes)
Key Index (1
byte)
Key
Data
CRC
(LSB)
CRC
(MSB)
ViVOtech2\0
D0h
03h
varies
varies
varies
varies
See
below
Varies
Varies