Forum Replies Created

  • Re: Reply To: Authentication Problem Desfire EV1 with AES

    27. January 2017 at 11:25
    in reply to: Authentication Problem Desfire EV1 with AES
    Hi,

    do you have any idea how long its last to solve(approximately). Would be an useful info for me. So i can adapt the time line for our project with our customer.

    Greetings&Thanks

    Ingo
    + 0  |  - 0

    Re: Reply To: Read Data after AES-Authentication

    27. January 2017 at 11:17
    in reply to: Read Data after AES-Authentication
    Hi,

    do you have any idea how long its last to solve(approximately). Would be an useful info for us.

    Greetings

    Ingo


    + 0  |  - 0

    Re: Reply To: Authentication Problem Desfire EV1 with AES

    23. January 2017 at 17:16
    in reply to: Authentication Problem Desfire EV1 with AES
    Here my code:

    desFireEV1.selectApplication(4726016);
    desFireEV1.authenticate(1,IDESFireEV1.AuthType.AES,KeyType.AES128,objKEY_AES128);
    String auth = desFireEV1.getAuthStatus();
    IDESFireEV1.CardDetails details = desFireEV1.getCardDetails();
    rd = desFireEV1.readData(1, 0, 16, IDESFireEV1.CommunicationType.Enciphered,1024);


    AppId: 4726016
    Key: id 1 , type: reading key


    like i wrote before I'm stuck with reading the data,I thought it should straight forward but I'm getting different values each time I try to read the same card.
    Isn't the result of readData() decrypted after the Authentication was successful?
    And I'm getting an com.nxp.nfclib.exceptions.InvalidResponseLengthException: Authentication Error when I'm using the Method getFileIDs() after succeccful authentication (auth = AES).
    + 0  |  - 0

    Re: Reply To: Authentication Problem Desfire EV1 with AES

    23. January 2017 at 16:43
    in reply to: Authentication Problem Desfire EV1 with AES
    Aditional infos:

    I try do read data from an application which is not the application 0 with an reading key.
    + 0  |  - 0

    Re: Reply To: Authentication Problem Desfire EV1 with AES

    23. January 2017 at 10:14
    in reply to: Authentication Problem Desfire EV1 with AES
    Hi,

    found out by myself on the weekend.
    thanks.

    So in the moment I'm stuck with reading the data,I thought it should straight forward but getting different values each time I try to read a card.
    Isn't the result of readData() decrypted after the Authentication was successful?
    And I'm getting an com.nxp.nfclib.exceptions.InvalidResponseLengthException: Authentication Error when I'm using the Method getFileIDs() after succeccful authentication.

    Ingo

    + 0  |  - 0

    Re: Reply To: Authentication Problem Desfire EV1 with AES

    19. January 2017 at 15:36
    in reply to: Authentication Problem Desfire EV1 with AES
    Hello,

    having still a problem with authentication.
    When calling method authenticate following error occures:

    com.nxp.nfclib.exceptions.InvalidResponseLengthException: Authentication Error



    desFireEV1.selectApplication(0);

    byte[] KEY_AES = new byte[] {
    (byte) 0xAA,(byte) 0xAA,(byte) 0xAA,(byte) 0xAA,(byte) 0xAA, (byte) 0xAA,(byte) 0xAA,(byte) 0xAA,
    (byte) 0xFF,(byte) 0xFF, (byte) 0xFF,(byte) 0xFF,(byte) 0xFF,(byte) 0x5F, (byte) 0xFF,(byte) 0xFF,

    };

    Key key = new SecretKeySpec(KEY_AES,"AES");
    KeyData keyData = new KeyData();
    keyData.setKey(key);
    desFireEV1.authenticate(0, IDESFireEV1.AuthType.AES, KeyType.AES128, keyData);


    Need help!!!
    + 0  |  - 0

    Re: Reply To: Authentication Problem Desfire EV1 with AES

    16. January 2017 at 11:20
    in reply to: Authentication Problem Desfire EV1 with AES
    Hi,

    thanks for the hint with the sdk version.
    But after changing the version I'm getting the following error:

    com.nxp.nfclib.exceptions.InvalidResponseLengthException: Incomplete response

    with the same code at desFireEV1.selectApplication(1) or desFireEV1.getApplicationIDs();




    + 0  |  - 0

    Re: Reply To: Authentication Problem Desfire EV1 with AES

    14. January 2017 at 9:21
    in reply to: Authentication Problem Desfire EV1 with AES
    Hello,

    yes I'm using the TapLinx SDK. I'm providing a little bit more of my code. Just changed the key value for this post.
    The error (error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length)
    occurs at the all of the authenticate method.

    I'm testing on a Samsung Galaxy s5 mini(SM-G800F) with android 5.1.1

    mCardType = CardType.DESFireEV1;
    desFireEV1 = DESFireFactory.getInstance().getDESFire(m_libInstance.getCustomModules());

    try {

    desFireEV1.getReader().connect();
    desFireEV1.getReader().setTimeout(2000);
    desFireEV1.selectApplication(1);

    byte[] KEY_AES = {
    (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(KEY_AES, "AES");
    KeyData keyData = new KeyData();
    keyData.setKey(key);
    desFireEV1.authenticate(0, IDESFireEV1.AuthType.AES, KeyType.AES128, keyData);
    showMessage("authenticated", 't');


    } catch (NxpNfcLibException ex ){
    showMessage(ex.getMessage(),'t');
    }
    break;
    + 0  |  - 0
Viewing 8 posts - 1 through 8 (of 8 total)