ID TECH Kiosk V User Manual
Page | 23
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
02h
See Status
Code Table
See Response
Frame Data
Format
Note:
The information above omits many command details, particularly TLV information. See the
NEO
Interface Developer’s Guide
(available from your ID TECH representative) for the full
Activate
Transaction (02-40)
description.
10.2.
Set CA Public Key (D0-03)
The
Set CA Public Key
command adds a new key to 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
Key Data (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.