Standard Transfer Specification Association

Decoder Key Generation Algorithm (DKGA)

Algorithm types

Various algorithm types exist in a STS based system:

  1. ​Algorithms used to create decoder keys from vending keys (DKGA = Decoder Key Generation Algorithm)
  2. Encryption Algorithms used to create and/or decrypt tokens in the meter and vending system (EA = Encryption Algorithm)

​ A DKGA is an algorithm used by the security module to create a decoder key for a payment meter from various input parameters:

  1. International identification number (IIN)
  2. Decoder reference number (DRN)
  3. Key Type (KT)
  4. Tariff index (TI)
  5. Key revision number (KRN)
  6. Vending key (VK)
  7. Supply group code (SGC)
  8. Base date (DKGA04 only)

DKGA's in use:

  1. Currently, the following DKGA's are specified:
  2. DKGA01 (64 bit DES - not recommended for use)
  3. DKGA02 (64 bit DES - current use)
  4. DKGA03 (triple DES - not recommended for use)
  5. DKGA04 (HMAC-SHA256 - available for use)

​Encryption Algorithm (EA)​

​Real Tables

The STA encryption algorithm uses a set of tables for the encryption and decryption of token data. These tables are available from the STSA for members by visiting the website and applying for a copy of the tables. Sample tables are supplied in the IEC62055-41 specification for test purposes, but cannot be used for final STS compliant systems.

References: IEC62055-41, STS600-4-1