typelogic / taplinx

Example Usage of Mifare TapLinx
0 stars 0 forks source link

Make desfireEV2.readData( ) work on encrypted file #3

Closed typelogic closed 3 years ago

typelogic commented 3 years ago

Currently having similar issue described here.

Reading Plain file content is ok. The issue occurs when the file is in Communications.Enciphered mode.

typelogic commented 3 years ago

Found correct usage of writeData() and readData() for encrypted Standard Data file to deal with the invalid checksum exception. Using KeyType.TWO_KEY_THREEDES instead of KeyType.THREEDES is also one of the cause of the exception.

However, one more underlying related issue is the missing API in TapLinx to read a DESFire file's size in order for readData() to work on encrypted files.

typelogic commented 3 years ago

Fixed by using TapLinx transceive() API.