NTAG 424 encrypted file data

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

NTAG 424 encrypted file data

Jump to solution
877 Views
MPucci
Contributor II

Hello community,

talking about NTAG424 and SDMENCFileData: is it possible to add to static file data a random padding? The goal is to have at any NDEF reading a different value, because even if the mirror is crypted, is always the same.

Thanks

Mario

0 Kudos
1 Solution
823 Views
MPucci
Contributor II

Hi Fabian,

my fault. I discovered that my enc data was just an encryption of static file without the algorithm inside ntag. Maybe i messed up the offsets that prevents the algorithm to work properly.

Thanks

View solution in original post

0 Kudos
4 Replies
824 Views
MPucci
Contributor II

Hi Fabian,

my fault. I discovered that my enc data was just an encryption of static file without the algorithm inside ntag. Maybe i messed up the offsets that prevents the algorithm to work properly.

Thanks

0 Kudos
809 Views
Fabian_R
NXP TechSupport
NXP TechSupport

No problem. I'm glad you were able to identify the root cause.

Best Regards,
Fabian
0 Kudos
851 Views
Fabian_R
NXP TechSupport
NXP TechSupport

Hello, my name is Fabian, I've been assigned to support your case.
Thank you for your interest in our products.
SDMENCFileData is already an encrypted file, its structure and format are defined by some proprietary security mechanisms. For this reason, the encryption protocol used typically includes padding schemes, these are implemented in order to meet specific block sizes.
Unfortunately, since there are some proprietary implementations, we cannot share any specifics regarding this procedure.

Best Regards,
Fabian
0 Kudos
839 Views
MPucci
Contributor II

Thanks Fabian,

i've all the info necessary to decrypt it from the NDEF message. My problem is different if i understood correctly the documentation: take for example page 13 of AN12196. The StaticFileData is 7878787878787878778.... and the corresponding SDMENCFileData is 94592FDE69FA06E8E3B6CA686A22842B. This value of SDMENCFile data is fixed, i mean is always the same at every read of NDEF. This can lead a malicoius to think that in this position there is a static data, even if encrypted. I'd like to change the SDMENCFiledata at every read with "Static data + random data". From my algorithm, once decripted i know where is the static and where is the random.

0 Kudos