Reply To: SAM_LockUnlock command

Forum MIFARE SmartCard IC`s SAM_LockUnlock command Reply To: SAM_LockUnlock command

Re: SAM_LockUnlock command

19. February 2018 at 17:01
Hi Tithi,

You need the host key only, if you want to personalize the SAM. Usually you change key values and key versions in the personalization. In my SAM AV2 (see the picture), the host key is the key with number 0. The host key must be an AES key (either 128 bit or 192 bits).

The other keys are PICC keys. This keys are used for the authentication of MIFARE cards and can be 2K3DES, 3K3DES or AES keys. This keys are set with a changeKey command in a “host session”. Later, if all PICC are defined, you can use the keys e.g. for an authentication to a MIFARE Plus (with SAM_AuthenticateMFP) or for reading (SAM_CombinedReadMFP) writing (SAM_CombinedWriteMFP) in encrypted communication. This is usually part of a microcontroller software.

When your customer hand-over a SAM to you, then the customer personalized the SAM before and you does not need to know the host keys. All you need to know is where are the PICC keys you have to use and which key versions you have to use. Please note: you cannot readout key values directly.

The TapLinx team
+ 1  |  - 0