GETFileSettings Giving 91 1E as response.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GETFileSettings Giving 91 1E as response.

89 Views
athul_pm
Contributor I

URL Generation for Dynamic Data: I need to generate a URL in the following format:

https://myurl.is.athul.io/12345678910?picc_data=0000000000000000000000000000000&cmac=0000000000000000

The picc_data and cmac parameters should change each time the card is tapped. Specifically, these parameters should be encrypted and used in 424 DNA tag mirroring.

I tried to updateFIlesettings(
90F5000009021605A79626E2C56D00)

after authenticateEV2First part1 and part2. but getting 91 Ae as response.

ANother question is where do we use the TI which we got as a response from authenticateEV2First response.?

0 Kudos
Reply
2 Replies

52 Views
athul_pm
Contributor I
I am currently working on updating the file settings to enable the mirroring of encrypted PICC data and CMAC. However, I am encountering an issue where I receive a 91 AE response after attempting to update the file settings. Below are the steps I have followed:

  1. Application Selection:
    command: <Buffer 00 a4 04 0c 07 d2 76 00 00 85 01 01 00>, response: <Buffer 90 00>Application selected
  2. Authentication:
    hex: 'ee0294f7fb1b464fbe17194c8181383f91af', cmd: <Buffer 90 71 00 00 05 00 03 00 00 00 00> response: <Buffer ee 02 94 f7 fb 1b 46 4f be 17 19 4c 81 81 38 3f 91 af>, Encrypted RndB: ee0294f7fb1b464fbe17194c8181383f Decrypted RndB: 7ca580fb76a20b8b495d5a3b9864a88e Rotated RndB: a580fb76a20b8b495d5a3b9864a88e7c Generated RndA: cdade1771f0a09965040fa086c603d25 RndA || RndB': cdade1771f0a09965040fa086c603d25a580fb76a20b8b495d5a3b9864a88e7c rndA_rndBRotated: <Buffer cd ad e1 77 1f 0a 09 96 50 40 fa 08 6c 60 3d 25 a5 80 fb 76 a2 0b 8b 49 5d 5a 3b 98 64 a8 8e 7c> Encrypted RndA || RndB': 36216755a431b987a24a4086d23327d90b09409f6bf15c96e1e7d40c355ad568 AUTHENTICATE_EV2_FIRST_PART2 Command: <Buffer 90 af 00 00 20 36 21 67 55 a4 31 b9 87 a2 4a 40 86 d2 33 27 d9 0b 09 40 9f 6b f1 5c 96 e1 e7 d4 0c 35 5a d5 68 00> Received Authentication Response for key 0 :f68a92a4a5bc6c09861ee08992c2bc68db5d72abf3ac2979675e601850a307a69100 sliced Response Part: <Buffer f6 8a 92 a4 a5 bc 6c 09 86 1e e0 89 92 c2 bc 68> Response part2 Decrypted Response: 79feec7eade1771f0a09965040fa086c603d25cd000000000000000000000000 rndAReceived: <Buffer ad e1 77 1f 0a 09 96 50 40 fa 08 6c 60 3d 25 cd>, rndAExpected: <Buffer ad e1 77 1f 0a 09 96 50 40 fa 08 6c 60 3d 25 cd>, TI: <Buffer 79 fe ec 7e>, cmdCtr: <Buffer 00 00> Authentication Successful! SV1: <Buffer a5 5a 00 01 00 80 cd ad 9d d2 9f f1 7f 34 0b 8b 49 5d 5a 3b 98 64 a8 8e 50 40 fa 08 6c 60 3d 25>, SV2: <Buffer 5a a5 00 01 00 80 cd ad 9d d2 9f f1 7f 34 0b 8b 49 5d 5a 3b 98 64 a8 8e 50 40 fa 08 6c 60 3d 25>, TI: <Buffer 79 fe ec 7e>,
    cmdCtr: <Buffer 00 00>, sesAuthENCKey: '70f759d26518f9029ad2ac814ed18882', sesAuthMACKey: 'e91c8a971fab3a57d8a9dfd37dc44774'
  3. Select NDEF File:
    command:<Buffer 00 a4 00 0c 02 e1 04>, response: <Buffer 90 00>
  4. Update Binary:
    Text=https://choose.url.com/ntag424?e=00000000000000000000000000000000&c=0000000000000000, command: '00d60000530051d1014d550463686f6f73652e75726c2e636f6d2f6e7461673432343f653d303030303030303030303030303030303030303030303030303030303030303026633d30303030303030303030303030303030' response: <Buffer 90 00>
  5. Get File Settings:
    command: <Buffer 90 f5 00 00 01 02 00>, response: <Buffer 00 00 e0 ee 00 01 00 91 00>
  6. Update File Settings:
    Command: <Buffer 90 5f 00 00 19 02 8b 3a 8b af 4e 9c 5e 83 c3 7e a3 47 bd 52 e0 2c b4 62 68 60 da 33 72 b6 00>,Response:<Buffer 91 ae>
    Despite following these steps, I am unable to successfully update the file settings. Could you please provide guidance on what might be causing the 91 AE response and how I can resolve this issue?
0 Kudos
Reply

68 Views
jimmychan
NXP TechSupport
NXP TechSupport

FYI. Please try to follow the example in this document. 

NTAG 424 DNA and NTAG 424 DNA TagTamper features and hints

0 Kudos
Reply