Forum / MIFARE general topics and applications / SAM_ChangeKeyEntry error switching a virgin MIFARE SAM AV2 from AV1 to AV2 Mode
-
Hi,
I'm trying to execute the SAM_ChangeKeyEntry command in MIFARE SAM AV2 to change the type of MIFARE SAM AV2 master key to AES-128. I'm following the sequence indicate in AN18211, but the response for the ChangeKeyEntry command is always 6982.
I know that the error indicates 'cryptogram incorrect', but I've the doubt on which data have to be used to calculate the CRC. Only command data before encryption?
Thanks in advanced
+ 0 | - 0
Hi Jesús Manuel,
Application note “AN10980 – MIFARE SAM AV2 – Host Communication” contains a calculated example of SAM_ChangeKeyEntry().
“Security status not satisfied” could also mean that you not authenticated before you try to change a key. Do you authenticated successfully in host mode?
Regards,
The TapLinx team
+ 0 | - 0
Hi,
I have similar Problem with virgin SAM AV2
i want to make the Change key entries to Transport values in AV1 mode (AN1823)
and the result of ChangeKeyEntry is 67 00
SAM_GetVersion
TX: 80 60 00 00 00 00
RX: 04 01 01 03 02 28 01 04 01 01 03 02 28 01 04 31 27 8A 5F 4F 80 98 46 69 00 00 05 09 10 00 A1 - 90 00
SAM_GetKeyEntry
TX: 80 64 00 00 00 00
RX: 00 00 00 00 00 00 00 00 00 FF 00 00 - 90 00
SAM_AuthenticateHost (TDEA)
TX: 80 A4 00 00 02 00 00 00
RX: 80 31 90 40 41 9E 15 4D - 90 AF
SAM_AuthenticateHost (TDEA)
TX: 80 A4 00 00 10 A3 F5 91 F7 AB 88 24 43 D7 49 A1 3F 36 0F B1 17 00
RX: BF DA 8B BE 9C 4F 0A 0F - 90 00
SAM_ChangeKeyEntry (TDEA)
TX: 80 C1 00 FF 40 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx 00
RX: 67 00
some idea?
+ 0 | - 0
solved!
+ 0 | - 0
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.