Topic: Change Master key AES to AES

Hi,

i try to change a AES key to AES key. But it allways fails.

old key: 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF
new key: 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11

ATR: 3B 81 80 01 80 80
Authentication AES.
keynumber:      00
key:            00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF
rndA:           EB 95 7C F6 68 2D 28 2D 7E 8F 25 7E D9 D4 77 CB
rndA_E:         CC CD D1 FB E6 54 85 52 02 BF 6F 38 85 F8 F8 8D
COMMAND   SEND: 90 AA 00 00 01 00 00
COMMAND RETURN: 86 D5 2A 32 7A 42 2E CC 57 1A 93 0A D2 1F DC DF 91 AF
rndB_E:         86 D5 2A 32 7A 42 2E CC 57 1A 93 0A D2 1F DC DF
rndB:           FF EA 68 16 76 28 4F DA CF CB 61 9F 03 DB 57 8A
rndB_R:         EA 68 16 76 28 4F DA CF CB 61 9F 03 DB 57 8A FF
rndB_X:         26 A5 C7 8D CE 1B 5F 9D C9 DE F0 3B 5E AF 72 72
rndB_XE:        49 2A 98 5D 35 80 2B 61 5C C3 89 73 FC 64 83 D8
COMMAND   SEND: 90 AF 00 00 20 CC CD D1 FB E6 54 85 52 02 BF 6F 38 85 F8 F8 8D 49 2A 98 5D 35 80 2B 61 5C C3 89 73 FC 64 83 D8 00
COMMAND RETURN: 94 8B 2D 8C E7 57 5B FF BC 1C 4C 01 69 32 27 A3 91 00
Authentication AES successful.
AuthenticationInformation{keynumber=00,key=00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF,rndA=EB 95 7C F6 68 2D 28 2D 7E 8F 25 7E D9 D4 77 CB,rndBE=86 D5 2A 32 7A 42 2E CC 57 1A 93 0A D2 1F DC DF,rndB=FF EA 68 16 76 28 4F DA CF CB 61 9F 03 DB 57 8A}
Get Key Version
keynumber:      00
COMMAND   SEND: 90 64 00 00 01 00 00
COMMAND RETURN: CC 53 7C 6C 9D CF CB E5 82 91 00
Get Key Version successful.
Changing AESkey to AESkey.
keynumber:      80
key:            00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF
keyversion:     CC
newkey:         11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11
newkeycrc32_1p: C4 80 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 CC --> CMD + KEYNUM + NEWKEY + KEYVERSION
newkeycrc32_1:  59 0A 69 D1 --> CRC32 of newkeycrc32_1p
newkeyCommand:  11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 CC 59 0A 69 D1 00 00 00 00 00 00 00 00 00 00 00
sessionkey:     EB 95 7C F6 FF EA 68 16 D9 D4 77 CB 03 DB 57 8A
block1:         11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11
block2:         CC 59 0A 69 D1 00 00 00 00 00 00 00 00 00 00 00
block1Encrypt:  9A 36 69 C8 8C 58 E0 06 46 61 1D 66 2E EA D8 E3 --> AES
block2XOR:      56 6F 63 A1 5D 58 E0 06 46 61 1D 66 2E EA D8 E3 --> xor(block1Encrypt,block2)
block2Encrypt:  D3 4F 86 21 9C 45 4E FB C0 43 B4 B5 DD 08 72 BB
COMMAND   SEND: 90 C4 00 00 21 80 9A 36 69 C8 8C 58 E0 06 46 61 1D 66 2E EA D8 E3 D3 4F 86 21 9C 45 4E FB C0 43 B4 B5 DD 08 72 BB 00
COMMAND RETURN: 91 1E

Please take a look on it.

Thank's
fraba

Re: Change Master key AES to AES

Hi fraba,

Have you find your error ?
I have the same error but I don't find any solution...

Thanks