6.5.3.2 CONTROLBlock construction
The 1 6 digit CONTROLBlock is constructed from the data elements in the APDU as defined in Table 36 and Table 37.The most significant digit is in position 1 5 and the least significant digit in position 0.
APDU中的数据元素构成了16位控制块,如表36和表37所示。最高有效位在位置15,最低有效位在位置0。
6.5.3.3 DKGA01 : DecoderKeyGenerationAlgorithm01
This DecoderKeyGenerationAlgorithm01 is to be used on a small limited set of defined DRN values only. It is included in this document to maintain backward compatibility with a limited number of legacy STS-compliant payment meters of an early generation also using the STA
(EA code 07). The POSApplicationProcess gives the appropriate directive by means of the DKGA code in the APDU.
DecoderKeyGenerationAlgorithm01仅用于一小部分已定义的DRN值。包含在本文档中是为了与有限数量的早期使用STA的遗留sts兼容的付费表保持向后兼容性(EA代码07)。POSApplicationProcess通过APDU中的DKGA代码给出适当的指令。
The DecoderKey is diversified from a 64-bit single DES VendingKey value.
DecoderKey与64位单个DES VendingKey值不同。
This DecoderKeyGenerationAlgorithm01 is applicable to all payment meters that meet all of the following criteria:
• using IIN = 600727;
• and the KRN = 1 ;
• and the KT = 1 or 2 (default or unique);
• and the EA code 07 (STA)
• and the DRN falls within the ranges listed in Table 38.
DecoderKeyGenerationAlgorithm01适用于所有满足以下条件的付费表:
- 使用IIN = 600727;
- 和KRN = 1;
- 和KT = 1或2(默认或唯一);
- EA代码07 (STA)
- DRN的取值范围如表38所示。
This DecoderKeyGenerationAlgorithm01 is also applicable to all payment meters that meet all
of the following criteria:
• using IIN = 600727;
• and the KRN = 1 ;
• and the KT = 3 (common);
• and the EA code 07 (STA);
• and coded with one of the SGC values listed in Table 39.
这个DecoderKeyGenerationAlgorithm01也适用于满足所有条件的所有付费仪表下列准则的规定:
- 使用IIN = 600727;
- 和KRN = 1;
- 和KT = 3(公数);
- EA代码07 (STA);
- 使用表39中列出的一个SGC值进行编码。
The process flow for the DKGA01 is shown in Figure 10. DKGA01的流程流如图10所示。
Construct the 64-bit PANBlock and the 64-bit CONTROLBlock as defined in 6.5.3.1 and 6.5.3.2.
构建6.5.3.1和6.5.3.2中定义的64位PANBlock和64位控制块。
The encryption algorithm is DEA in accordance with FIPS PUB 46-3, single DES in ECB mode, using a single 64-bit DES VendingKey with odd parity.
加密算法是基于FIPS PUB 46-3的DEA,单个DES在ECB模式下,使用一个64位奇偶校验的DES密钥。
In this instance the 64-bit DES VendingKey is used as the conventional DataBlock input to the DEA, while the resultant XOR of the CONTROLBlock with the PANBlock is used as the conventional KeyBlock input to the DEA. In other words, the data and key input blocks are swapped with respect to the conventional configuration.
在这种情况下,64位DES VendingKey被用作DEA的传统数据块输入,而控制块与PANBlock的结果异或被用作DEA的传统关键块输入。换句话说,数据块和关键输入块相对于传统的配置进行了交换。