TRNG implementation on LPC55S36

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

TRNG implementation on LPC55S36

Jump to solution
221 Views
JeanMichel
Contributor I

Hello,

I need to use the TRNG module on the LPC55S36, which should exist as mentionned in its secutiry features, but can't find any documentation or SDK driver about it.

I've found an RNG function in the flash iap module, but I don't think it's the TRNG I'm looking for, since this feature also exists on the LPC5536, which doesn't have the TRNG module mentionned in its secutiry features.

I found out that some of the LPC55S36 documentation is protected with a NDA, so I got an NDA signed between my company and NXP, but none of the protected documentation seems to mention the TRNG. I also tried to request access on the secure part of the software section on the LPC55S36, hoping I could find some drivers there, but it looks like my request didn't go anywhere because I didn't receive a confirmation email and now I just have "There is no information to display" on the secure software section.

At this point I feel stuck and would really appreciate any help regarding how I should proceed to find documentation about the TRNG on the LPC55S36.

Thank you in advance for your response.

Labels (1)
0 Kudos
Reply
1 Solution
33 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @JeanMichel 

Since you already have the appropriate secure access rights, please contact our Docstore team at [email protected] and specify the document you would like to access, in this case RM874130.

The Docstore team can check the access from the backend and provide you with a download link or enable the required download permission.

BR

Harry

View solution in original post

0 Kudos
Reply
8 Replies
192 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @JeanMichel 

The RNG ROM API is related to the TRNG implementation. According to AN13794, the TRNG output is used as the entropy source for seeding the DRBG, while the application obtains the resulting random data through the NBOOT RNG ROM API.
BR
Harry
0 Kudos
Reply
179 Views
JeanMichel
Contributor I

Hello @Harry_Zhang ,

Thank you for your response.

The AN13794 is titled for the "LPC553x (Non-Secure)" microconctroller, and also mentions that "for applications requiring high security, NXP secure parts, such as LPC55S3x, provide a better option." So to me it doesn't feel like the rom api uses the secured LPC55S36 TRNG module. If it actually does I would really appreciate any reference to confirm it, because our code is audited for high security purposes and we need prooves that our cryptocraphic modules use TRNG.

Best regards

0 Kudos
Reply
168 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi  @JeanMichel 

I am currently checking this with our internal team. I will get back to you as soon as I have any updates.
 
BR
Harry
0 Kudos
Reply
85 Views
JeanMichel
Contributor I

Hello @Harry_Zhang 

Have you found anything on this topic ?

Best regards

0 Kudos
Reply
76 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @JeanMichel 

I checked specifically with our internal team, and they confirmed that on the LPC55S36, the RNG functionality provided through the ROM API uses the TRNG from ELS.

For more detailed information, please refer to the LPC55S3x Secure Reference Manual (RM874130). Please note that this is documentation for the secure parts and access may be restricted.

Harry_Zhang_0-1796177920798.png

 

BR

Harry

0 Kudos
Reply
68 Views
JeanMichel
Contributor I

Hello @Harry_Zhang 

Thank you for your response. The RM874130 is exactly the document I need, but I can't see it in the secure documents.

JeanMichel_0-1796200437627.png

I have an NDA signed between my company and NXP, and I completed the secure access request for the LPC5500. When going to my account profile, under the "List of Products with Authorized Access Rights", on the categories "Processors and Microcontrollers" -> "Arm Microcontrollers" -> General Purpose MCUS" -> "LPC5500 Series Cortex-M33", this is what I have :

JeanMichel_1-1796200993668.png

When going to the Secure Access Rights Form from my profile, I can also see that I already have the "LPC5500 Series Cortex-M33" category validated, so I can't ask for access rights again. I don't know what else I have to do to access the LPC55S36 reference manual you're mentioning.

Could you please guide me on what I should do to access this document ?

Thank you very much for your time.

Best regards

0 Kudos
Reply
33 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @JeanMichel 

Since you already have the appropriate secure access rights, please contact our Docstore team at [email protected] and specify the document you would like to access, in this case RM874130.

The Docstore team can check the access from the backend and provide you with a download link or enable the required download permission.

BR

Harry

0 Kudos
Reply
25 Views
JeanMichel
Contributor I

Hello @Harry_Zhang ,

I will contact docstore support and hopefully find all the informations I need in the LPC55S36 reference manual.

Thank you for your help.

Best regards

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2432045%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ETRNG%20implementation%20on%20LPC55S36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2432045%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20need%20to%20use%20the%20TRNG%20module%20on%20the%20LPC55S36%2C%20which%20should%20exist%20as%20mentionned%20in%20its%20secutiry%20features%2C%20but%20can't%20find%20any%20documentation%20or%20SDK%20driver%20about%20it.%3C%2FP%3E%3CP%3EI've%20found%20an%20RNG%20function%20in%20the%20flash%20iap%20module%2C%20but%20I%20don't%20think%20it's%20the%20TRNG%20I'm%20looking%20for%2C%20since%20this%20feature%20also%20exists%20on%20the%20LPC5536%2C%20which%20doesn't%20have%20the%20TRNG%20module%20mentionned%20in%20its%20secutiry%20features.%3C%2FP%3E%3CP%3EI%20found%20out%20that%20some%20of%20the%20LPC55S36%20documentation%20is%20protected%20with%20a%20NDA%2C%20so%20I%20got%20an%20NDA%20signed%20between%20my%20company%20and%20NXP%2C%20but%20none%20of%20the%20protected%20documentation%20seems%20to%20mention%20the%20TRNG.%20I%20also%20tried%20to%20request%20access%20on%20the%20secure%20part%20of%20the%20software%20section%20on%20the%20LPC55S36%2C%20hoping%20I%20could%20find%20some%20drivers%20there%2C%20but%20it%20looks%20like%20my%20request%20didn't%20go%20anywhere%20because%20I%20didn't%20receive%20a%20confirmation%20email%20and%20now%20I%20just%20have%20%22There%20is%20no%20information%20to%20display%22%20on%20the%20secure%20software%20section.%3C%2FP%3E%3CP%3EAt%20this%20point%20I%20feel%20stuck%20and%20would%20really%20appreciate%20any%20help%20regarding%20how%20I%20should%20proceed%20to%20find%20documentation%20about%20the%20TRNG%20on%20the%20LPC55S36.%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20your%20response.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2432045%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC55xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2432309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20TRNG%20implementation%20on%20LPC55S36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2432309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255763%22%20target%3D%22_blank%22%3E%40JeanMichel%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3EThe%20RNG%20ROM%20API%20is%20related%20to%20the%20TRNG%20implementation.%20According%20to%20AN13794%2C%20the%20TRNG%20output%20is%20used%20as%20the%20entropy%20source%20for%20seeding%20the%20DRBG%2C%20while%20the%20application%20obtains%20the%20resulting%20random%20data%20through%20the%20NBOOT%20RNG%20ROM%20API.%3C%2FDIV%3E%0A%3CDIV%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13794.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ERandom%20Number%20Generation%20Using%20ROM%20API%20in%20LPC553x%20(Non-Secure)%20Devices%3C%2FA%3E%3C%2FDIV%3E%0A%3CDIV%3EBR%3C%2FDIV%3E%0A%3CDIV%3EHarry%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2432376%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20TRNG%20implementation%20on%20LPC55S36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2432376%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229957%22%20target%3D%22_blank%22%3E%40Harry_Zhang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response.%3C%2FP%3E%3CP%3EThe%20AN13794%20is%20titled%20for%20the%20%22LPC553x%20(Non-Secure)%22%20microconctroller%2C%20and%20also%20mentions%20that%20%22for%20applications%20requiring%20high%20security%2C%20NXP%20secure%20parts%2C%20such%20as%20LPC55S3x%2C%20provide%20a%20better%20option.%22%20So%20to%20me%20it%20doesn't%20feel%20like%20the%20rom%20api%20uses%20the%20secured%20LPC55S36%20TRNG%20module.%20If%20it%20actually%20does%20I%20would%20really%20appreciate%20any%20reference%20to%20confirm%20it%2C%20because%20our%20code%20is%20audited%20for%20high%20security%20purposes%20and%20we%20need%20prooves%20that%20our%20cryptocraphic%20modules%20use%20TRNG.%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2432548%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20TRNG%20implementation%20on%20LPC55S36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2432548%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255763%22%20target%3D%22_blank%22%3E%40JeanMichel%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3EI%20am%20currently%20checking%20this%20with%20our%20internal%20team.%20I%20will%20get%20back%20to%20you%20as%20soon%20as%20I%20have%20any%20updates.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EBR%3C%2FDIV%3E%0A%3CDIV%3EHarry%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2433422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20TRNG%20implementation%20on%20LPC55S36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2433422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229957%22%20target%3D%22_blank%22%3E%40Harry_Zhang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20found%20anything%20on%20this%20topic%20%3F%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2433482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20TRNG%20implementation%20on%20LPC55S36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2433482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255763%22%20target%3D%22_blank%22%3E%40JeanMichel%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3EI%20checked%20specifically%20with%20our%20internal%20team%2C%20and%20they%20confirmed%20that%20%3CSTRONG%3Eon%20the%20LPC55S36%2C%20the%20RNG%20functionality%20provided%20through%20the%20ROM%20API%20uses%20the%20TRNG%20from%20ELS%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3EFor%20more%20detailed%20information%2C%20please%20refer%20to%20the%20%3CSTRONG%3ELPC55S3x%20Secure%20Reference%20Manual%20(RM874130)%3C%2FSTRONG%3E.%20Please%20note%20that%20this%20is%20documentation%20for%20the%20secure%20parts%20and%20access%20may%20be%20restricted.%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Harry_Zhang_0-1796177920798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Harry_Zhang_0-1796177920798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Harry_Zhang_0-1796177920798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F400110iB5DAB570BC3A9E1B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Harry_Zhang_0-1796177920798.png%22%20alt%3D%22Harry_Zhang_0-1796177920798.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2433570%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20TRNG%20implementation%20on%20LPC55S36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2433570%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229957%22%20target%3D%22_blank%22%3E%40Harry_Zhang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response.%20The%20RM874130%20is%20exactly%20the%20document%20I%20need%2C%20but%20I%20can't%20see%20it%20in%20the%20secure%20documents.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JeanMichel_0-1796200437627.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JeanMichel_0-1796200437627.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F400135i1A13E4320BC6DBD0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JeanMichel_0-1796200437627.png%22%20alt%3D%22JeanMichel_0-1796200437627.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20an%20NDA%20signed%20between%20my%20company%20and%20NXP%2C%20and%20I%20completed%20the%20secure%20access%20request%20for%20the%20LPC5500.%20When%20going%20to%20my%20account%20profile%2C%20under%20the%20%22List%20of%20Products%20with%20Authorized%20Access%20Rights%22%2C%20on%20the%20categories%20%22Processors%20and%20Microcontrollers%22%20-%26gt%3B%20%22Arm%20Microcontrollers%22%20-%26gt%3B%20General%20Purpose%20MCUS%22%20-%26gt%3B%20%22LPC5500%20Series%20Cortex-M33%22%2C%20this%20is%20what%20I%20have%20%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JeanMichel_1-1796200993668.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JeanMichel_1-1796200993668.png%22%20style%3D%22width%3A%20262px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F400136i7BF4F60AA078B8E6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JeanMichel_1-1796200993668.png%22%20alt%3D%22JeanMichel_1-1796200993668.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20going%20to%20the%20Secure%20Access%20Rights%20Form%20from%20my%20profile%2C%20I%20can%20also%20see%20that%20I%20already%20have%20the%20%22LPC5500%20Series%20Cortex-M33%22%20category%20validated%2C%20so%20I%20can't%20ask%20for%20access%20rights%20again.%20I%20don't%20know%20what%20else%20I%20have%20to%20do%20to%20access%20the%20LPC55S36%20reference%20manual%20you're%20mentioning.%3C%2FP%3E%3CP%3ECould%20you%20please%20guide%20me%20on%20what%20I%20should%20do%20to%20access%20this%20document%20%3F%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20your%20time.%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3C%2FLINGO-BODY%3E