Hello, good day.
A few days ago, I purchased a terminal model P18Q, which supports the following authentication methods for MIFARE Plus cards. The provider informed me that I need to implement my own encryption algorithms to send commands to the card, which is operating in SL3 mode, and authenticate to a specific sector.
Using the official NXP library, I am able to authenticate, read, and write to the card without any issues. However, with my custom implementation — where I send my key along with the challenge response — I consistently receive an error during the mplus_firstAuth_f2 process.
Does anyone know if I am performing the authentication correctly? Unfortunately, I cannot use the official NXP library on this terminal, as it does not have a standard Android NFC reader. Instead, it relies on an external terminal with which I can only communicate through APDUs.



