VhlCfg / File / DesfireVcsParams Value

If this key entry exists the reader performs a virtual card selection.

Properties

Format

Name Type/Size Description
VcsOptions Bit mask (8 bits) Virtual card select options
RFU Integer (bit mask area 0xF8) Zero padding
PrependUidBeforeMacDivData Boolean (bit 0x04) Prepends UID before VC Mac diversification data.
RejectCardsWithoutValidIid Boolean (bit 0x02) Cards without valid IID are rejected.
ForceAuthToCard Boolean (bit 0x01) Authentication after virtual card selection is mandatory. Cards without encryption are rejected.
Length of DfName Integer (8 bits) Length of DfName in bytes
DfName Raw data Select VC with the given DF name (VCIID or application identifier).
VcsEncKeyidx Integer (8 bits) Key entry of the virtual card select encryption 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)
VcsMacKeyidx Integer (8 bits) Key entry of the virtual card select MAC 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)