VhlCfg / File / MifareClassicWriteKeyAssignment Value

For every entry in MifareSectorList (or MifareClassicBlockList for legacy configurations) an entry in this list has to be specified, that refers to a key in MifareKeyList (or MifareClassicKeyList ). Furthermore every entry has to be bitmask-combined with either KeyA or KeyB to inform the reader if the key at the corresponding key index shall be applied as key A or key B.

If this value contains less entries than MifareSectorList the missing entries will be filled up by duplicating the last entry in this list. If this value is not defined all sectors will be written by using key 1 as KeyB.

This value is used by Mifare classic firmware only. For Mifare plus firmware use MifarePlusKeyAssignment instead.

Properties

Format

Name Type/Size Description
- Array (until end of frame) -
Key Bit mask (8 bits) This bitmask can be combined with a reference to a key index in the readers keylist and specifies more details.
Secure Boolean (bit 0x80) The key assigned to this sector shall not be taken from the VHL file
KeyB Boolean (bit 0x40) The key assigned to this sector/block shall be applied as key B
RFU Integer (bit mask area 0x3F) Zero padding