Mif.SectorSwitch

This command performs a sector switch command (only for EV1 cards). Prior the card has to be set in 14443-4 mode, all sectors are addressed with sector Key B.

Properties

Parameters (request frame)

Name Type/Size Description
- Bit mask (8 bits) -
RFU Integer (bit mask area 0xFE) Zero padding
L3SectorSwitch Boolean (bit 0x01) If true, the target level of the sector switch is SL3, else SL1/SL3-Mixed.
SectorSwitchKeyIdx Integer (16 bits)

Crypto Memory Index (SAM or CryptoMemory) of L1L3MixSectorSwitchKey or L3SectorSwitchKey

  • SAM: MSByte: Key version / LSByte: KeyIdx
  • Crypto Memory: MSByte: Page (0..15) / LSByte: KeyIdx (0x80-0xBF)
Length of SectorSwitchKeyDivData Integer (8 bits) Length of SectorSwitchKeyDivData in byte
SectorSwitchKeyDivData Raw data If diversification data is specified, key diversification of the SectorSwitchKey will be done according to NXP AN10922.
Length of SectorSpec Integer (8 bits) Number of elements in the SectorSpec array
SectorSpec Array -
BlockAddress Integer (16 bits) Block address of the sector that is switched to the targeted security level.
SectorKeyIdx Integer (16 bits)

Crypto Memory Index (SAM or CryptoMemory) of the sector key.

  • SAM: MSByte: Key version / LSByte: KeyIdx
  • Crypto Memory: MSByte: Page (0..15) / LSByte: KeyIdx (0x80-0xBF)
Length of SectorKeysDivData Integer (8 bits) Length of SectorKeysDivData in byte
SectorKeysDivData Raw data If diversification data is specified, key diversification of the sector keys will be done according to NXP AN10922.

Returned values (response frame)

None