VhlCfg / File / DesfireFormatPiccDefaultKey Value

This entry is only needed for running VHLFormat() and specifies the key index of the new default key for Desfire EV1 cards.

Only VHL key memory can be referenced: DesfireKeyList (values >= 0xC0). The crypto mode of this entry will be ignored - so it is recommend to define the default key as 3K3DES key to accomplish 24 byte key length. If the length of the given key is smaller, the remaining bytes will be filled up with 0.

Properties

Format

Name Type/Size Description
- Array (until end of frame) -
CardDefaultKeyIdx Integer (8 bits)
This entry refers to a crypto key. Normally the value works as explaind below. If the configuration value DesfireMapKeyIdx exists, the meaning of this entry changes. Please refer to DesfireMapKeyIdx
  • 0x00-0x7F: index to SAM key, key version has to be 0
  • 0x80-0xBF: index to key defined in crypto memory of the reader: Device/CryptoKey
  • 0xC0-0xCB: index to key defined in VHL file: DesfireKeyList
  • 0xFE: legacy, use transport key 0xFF: key index unused

(Minimum value: 0x00, maximum value: 0xFE)