NTAG 413 DNA encryption

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

NTAG 413 DNA encryption

1,180 Views
alkhasov_i
Contributor I

Hi there,

In our project we're trying to implement visit control using NXP NTAG 413 DNA.

We need the following algorithm:

User taps the tag with his mobile device. When tapped, mobile device software (which we'll develop) writes current date time to tag, and then immidiately gets it back encrypted (or CMACed). In other words, we need to encrypt or CMAC our custom data (eg. current date time) + chip UID. Is it possible to implement with NTAG 413 DNA?

Kind regards,

Igor

Tags (1)
0 Kudos
9 Replies

929 Views
alkhasov_i
Contributor I

Is it possible to CMAC other data (eg. plain text) than tag UUID, counter?

0 Kudos

929 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hello,

It is possible to CMAC your custom data, you may verify with the TagXplorer as below:

pastedImage_3.png


Have a great day,
Kan

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

929 Views
alkhasov_i
Contributor I

Hi Kan, and thanks a lot for your reply.

If I understand correctly, we are able to write our custom data (e.g. timestamp) to the NDEF, and then when tapping the tag with our device (mobile phone), our custom data is CMACed and read from the tag, right?

And if so, where can I read about how to set up the tag so when tapping, it CMACs our custom data written to NDEF. Here I mean technical details.

0 Kudos

929 Views
Kan_Li
NXP TechSupport
NXP TechSupport

You may request the following docs from the doc store:

pastedImage_1.png

Please kindly refer to the attachment for more details.

Hope that helps,


Have a great day,
Kan

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

929 Views
alkhasov_i
Contributor I

Hi Kan, and thanks for yor reply.

Another question is about encryption. Is it possible to encrypt NDEF contents on the fly?

What I mean is when tapping the tag, the NDEF contents (e.g. plain text) will be encrypted and leave the tag in encrypted state (mobile device does not get the plain text, but the encrypted plain text)

0 Kudos

929 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi I A,

Do you mean encrypting the following part by tag itself?

pastedImage_1.png

Please kindly clarify.

Thanks for your patience!


Have a great day,
Kan

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

929 Views
alkhasov_i
Contributor I

What I mean is encrypting any NDEF content (e.g PLAIN TEXT).

I do not actually understand what exactly is "mycustomdata" on the image.

0 Kudos

929 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Thanks for the clarification! I am sorry NTAG 413 DNA doesn't support this, you have to use NTAG 424 DNA instead. Please refer to the following for details.

https://www.nxp.com/docs/en/application-note/AN12196.pdf 

Hope that helps,


Have a great day,
Kan

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

929 Views
alkhasov_i
Contributor I

Hasn't anybody faced with the kind of issue?

0 Kudos