1 (edited by chiase 2014-06-03 06:41:11)

Topic: Changing a AES key...

Hi all,

I'm working on DESFire EV1. After authentication, I want to change a AES key of card but I receive a code error 0x1e (CRC or MAC does not match data Padding bytes not valid).
The data I sent to card as follows:

CRC32_1 over: Cmd + Key No + (New Key ^ Old Key) + New Key Version
CRC32_2 over: New Key
AES ( New Key + New Key Version + CRC32_1 + CRC32_2 + 7 bytes zero(padding))
Send: Cmd + Key No + encrypted AES data

Wrong?
Thanks

P.s: I use AES CBC mode.

Re: Changing a AES key...

The problem is fixed!
(Closed topic)

Re: Changing a AES key...

Hi Chiase,

What was the problem ?
I have the same error and I don't find any solution. Can you share your answer please ?

Thanks