Download Consolidated Specification

Transcript
3.2.3.1 Application of RS encryption
For simplicity, a software or instrument connected to an RS approved device will be referred to as
the Master. According to the test centre configurations, the Master may therefore be the PCStazione
software or the host device using it, for example a RS Without Result proved rev counter.
At the beginning of the communication session, the Master communicates the VIN No, reception
date and category of vehicle being tested to the RS Without Result device.
“The device generates the message SHA-1 hash formed by linking its secret seed, licence plate, the
VIN No, the reception date and the vehicle category (completion of the missing bits to form a data
block of minimal length must be carried out at the end and not for individual fields and is specified
by SHA-1)”.
The secret seed used by the device to generate the hash SHA-1 must be 8 hexadecimal characters
(written in upper case).
The device returns the hash to the Master, which obtains the fixed 104 bit part of the RC4 session
key from the hash that is used to encrypt the next stage of communication.
The hash will always be shown in the relevant file Entry produced by the Master.
At the end of the test PCPrenotazione calculates the SHA-1 hash in turn, using the device secret
seed, the licence plate, the VIN No, the reception date and the vehicle category. The secret seed
used by PCPrenotazione is the one downloaded in safe mode from the Administration website. The
secret seed used by PCPrenotazione is the one downloaded in safe mode from the Administration
website. If it is found that the hash produced by PCPrenotazione is not the same as the one
theoretically produced by the device and shown in the relevant entry, PCPrenotazione must report
the inconsistency and consider the test completed as specified in paragraph 4.1.1.7 (Formal errors).
3.2.3.1.1 Communication between Master and RS without result approved device
After the ID command, the Master sends the device the licence plate (TG) command to transfer the
licence plate, VIN No, acceptance date and vehicle category (see RS Senza Esito flow diagrams).
In responding to the TG command, the device returns a 160 bit hash to the Master, calculated from
a string obtained by linking the secret seed, licence plate, VIN No, reception date and category.
The Master obtains the secret part of the RC4 key from the 26 hash characters selected using the
table:
RC4 key
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Hash
2
3
5
6
8
9
11
12
14
15
17
18
20
22
23
25
26
28
29
31
32
34
35
37
38
40
The table is used to generate a string of hexadecimal characters made up with the first character
equal to the second character of the hash, the second character equal to the third character of the
hash, the third character equal to the fifth character of the hash, and so on.
13 bytes (=104 bit) are obtained from the resulting string of 26 hexadecimal characters, to be used
as the fixed part of the RC4 key.
During the subsequent stage of communication, all the question strings sent by the Master to the
device are uncoded because there is no need for protection.
Edition I
MCTCNet2
37 di 304