Forum › MIFARE SmartCard IC`s › Sam Av2 ChangeKey › Reply To: Sam Av2 ChangeKey
Hi Marcelo,
If you have RFIDdiscover and the key change works, you can study how does it RFIDdiscover right. Did you consider all preconditions, e.g.: if you want to change a host key you must have a valid host authentication before etc.
SAM_ChangeKeyEntry is a complex command. The new key entry must be encrypted and a MAC must be calculated. If something went wrong, the SAM will reject the command. I recommend reading:
AN1823 – MIFARE SAM AV2 – Key Management and Personalization
You will find examples of SAM_ChangeKeyEntry there. This AN is available via our DocStore delivery.
Kind regards,
The TapLinx team
If you have RFIDdiscover and the key change works, you can study how does it RFIDdiscover right. Did you consider all preconditions, e.g.: if you want to change a host key you must have a valid host authentication before etc.
SAM_ChangeKeyEntry is a complex command. The new key entry must be encrypted and a MAC must be calculated. If something went wrong, the SAM will reject the command. I recommend reading:
AN1823 – MIFARE SAM AV2 – Key Management and Personalization
You will find examples of SAM_ChangeKeyEntry there. This AN is available via our DocStore delivery.
Kind regards,
The TapLinx team
+ 0
|
- 0