Forum Replies Created

  • Re: Reply To: Desfire Authentication

    11. January 2018 at 10:57
    in reply to: Desfire Authentication
    Nothing understand. Maybe I am just very stupid. But I wrote follow code:

    byte[] byteKey = {(byte) 0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00
    ,(byte) 0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00};
    Key key = new SecretKeySpec(byteKey,"DESede");
    KeyData kd = new KeyData();
    kd.setKey(key);

    desFireEV1.getReader().connect();
    desFireEV1.getReader().setTimeout(2000);
    desFireEV1.selectApplication(0x000000);
    desFireEV1.authenticate(0, IDESFireEV1.AuthType.Native, KeyType.THREEDES, kd);


    Card is blank, but after code running still have an exception:
    com.nxp.nfclib.exceptions.InvalidResponseLengthException: Incomplete response received from PICC.

    I tried to change timeout, but it did not bring any results.
    What is possible solution of this problem?
    + 0  |  - 0

    Re: Reply To: Desfire Authentication

    10. January 2018 at 15:04
    in reply to: Desfire Authentication
    Tell me, please, what I doing wrong?

    byte[] byteKey = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
    ,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
    Key key = new SecretKeySpec(byteKey,"DESede");
    KeyData kd = new KeyData();
    kd.setKey(key);
    .............................
    desFireEV1.authenticate(0, IDESFireEV1.AuthType.Native, KeyType.THREEDES, kd);
    com.nxp.nfclib.exceptions.InvalidResponseLengthException: Incomplete response received from PICC.

    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)