Forum › MIFARE SDK › Switching MiFare Plus to S3 › Reply To: Switching MiFare Plus to S3
Hello,
I have the same exact problem reported here.
This fails with
But my key clearly has exactly 16 bytes. I'm using TapLinx 1.0. What is wrong here?
I have the same exact problem reported here.
byte[] key = new byte[16]{0x4b, 0x2c, 0xf0, 0xbb, 0x69, 0x5e, 0xb4, 0xdd, 0x80, 0x42, 0xd4, 0x24, 0x64, 0x71, 0x5e, 0x5c};
KeyData keyData = new KeyData();
keyData.setKey(new SecretKeySpec(key, "AES"));
// later on, when a card detection intent is received:
IPlusEV1SL1 card = PlusSL1Factory.getInstance().getPlusEV1SL1(mifare.getCustomModules());
card.switchToSL3(keyData);
This fails with
com.nxp.nfclib.exceptions.SecurityException: error:1e06b06a:Cipher functions:EVP_DecryptFinal_ex:DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
But my key clearly has exactly 16 bytes. I'm using TapLinx 1.0. What is wrong here?
+ 0
|
- 0