NEO 2 Interface Developer’s Guide
Copyright © 2019, International Technologies & Systems Corporation. All rights reserved.
249
Key Data is as follows: (all binary)
Byte
Name
Length
(bytes)
Description
0
Hash Algorithm
1
The only algorithm supported is SHA-1. The value is set to 01h
1
Public Key
Algorithm
1
The encryption algorithm in which this key is used. Currently support
only one type: RSA. The value is set to 01h
3-22
Checksum/Hash
20
Checksum which is calculated using SHA-1 over the following fields:
RID
&
KeyIndex
&
Modulus
&
Exponent
where the exponent is either one byte or 3 bytes (although we store it
in a 4 byte field)
23-26 Public Key
Exponent
4
Actually, the real length of the exponent is either one byte or 3 bytes.
It can have two values: 3, or 65537.
27-28 Modulus Length
2
Indicates the length of the next field, MSB followed by LSB.
29-n
Modulus
Variable
This is the modulus field of the public key. Its length is specified in the
field above.
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14
Byte 15
Header Tag & Protocol
Version
Cmd
status
Length
(MSB)
Length
(LSB)
CRC
(LSB)
CRC
(MSB)
ViVOtech2\0
D0h
00h
00h
Calculated
Calculated
8.7.4.
Delete CA Public Key (D0-04)
This command allows the POS to delete a specific 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
(5 bytes)
Key Index
(1 byte)
CRC
(LSB)
CRC
(MSB)
ViVOtech2\0
D0h
04h
00h
06h
varies
varies
Varies
Varies
The RID and Key Index for the key being deleted must be specified in the frame.
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14
Byte 15
Header Tag & Protocol
Version
Cmd
status
Length
(MSB)
Length
(LSB)
CRC
(LSB)
CRC
(MSB)
ViVOtech2\0
D0h
00h
00h
Calculated Calculated