Reply To: What's differences are between the TDEA -Desfire and the TDEA-ISO10116(crc16) -k

Forum MIFARE SDK What's differences are between the TDEA -Desfire and the TDEA-ISO10116(crc16) -k Reply To: What's differences are between the TDEA -Desfire and the TDEA-ISO10116(crc16) -k

Re: What's differences are between the TDEA -Desfire and the TDEA-ISO10116(crc16) -k

6. February 2017 at 10:30
If I use below steps in the AuthenticateHost (key type= TDEA-ISO10116(crc16):
STEPS:
1.send initial authentication request to the SAM - 80 A4 00 00 02 00 01 00
2.get encrypted (randB) from response
3.16 bytes default key (known key value)
4. Keys for 3DES
5. decrypt encoded randB
6. generate randA
7. decrypt randA
8. shift randB 1 byte left and get randB'
9. XOR randB' with randA and decrypt
10. concat (randB' + randA)
11. send (randB' + randA) to the SAM - 80 A4 00 00 10 xx xx ... xx

But result is (sw1 and sw2 = 90 1E) ?

So, something wrong must be in decrypt -methods ? (cipherMode.CBC or ?) or what means crc16 in the key type ?

+ 0  |  - 0