
Page | 23
6.3.2.
Set Private Key (C7-66)
The
Set Private Key
command loads the private key associated with the Merchant’s Apple VAS pass into
the ViVOpay device. This allows the reader to decrypt the pass data.
Note:
The
Set Private Key
(C7-66)
command
only works on non-SRED readers; Lite-On Custom PiP s
are not SRED.
Command Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14 …
Byte 14+n-1
Byte 14+n
n
Header Tag
& Protocol
Version
Command
Sub-
Command
Data
length
(MSB)
Data
length
(LSB)
Data
CRC
(MSB)
CRC
(LSB)
ViVOtech2\0
C7
66h
0020h or 0021h
Data
Command Frame Data Field
Data Field
Length (bytes)
Description
Merchant Record Index
1 or 0 (OTP)
If the Merchant Record Index does not exist, this Private Key
is used by all Merchant IDs.
If the Merchant Record Index exists, this Private Key is used
for the specified Merchant ID.
The valid value is 1-6.
It can be set for 6 records.
Private Key
32
Apple VAS Private Key.
ta Field Length (bytes) Descript
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14 …
Byte 14+n-1
Byte 14+n
n
Header Tag &
Protocol
Version
Command
Status
Data
length
(MSB)
Data
length
(LSB)
Data
CRC
(MSB)
CRC
(LSB)
ViVOtech2\0
C7
See Status
Code
Table, NEO
2 IDG
00h
00h
Note 1:
The private key should be 32 bytes long. If the private key is injected and tag DFED3F bit 2 set to
1
, the reader will decrypt VAS data (tag 9F27).
6.3.2.1.
Example Usage
To load the Apple VAS Private Key in your Lite-On Custom PiP for use with the ID TECH Demo Pass, the
values used are shown below: