VhlCfg / File / DesfireFormatAppChangeKeys Value

This entry is only needed for running VHL-Format() and is used to change any application key (except the application master key). It contains a list of 3 bytes entries, whereas each list entry specifies exactly one application key. Note: if the applications change key should be changed (and if it is not equal to the application master key) it has to be the first entry in the list.

Properties

Format

Name Type/Size Description
- Array (until end of frame) -
KeyNo Integer (8 bits) Card application key number, which should be changed.
(Minimum value: 0x01, maximum value: 0x0D)
CurrentKeyIdx Integer (8 bits) Index to current key.
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)
NewKeyIdx Integer (8 bits) Index to new key.
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)