RT1020: ctr_nonce calculation algorithm, when is applied?

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

RT1020: ctr_nonce calculation algorithm, when is applied?

Jump to solution
399 Views
mastupristi
Senior Contributor I

Hello,

I usually compute the ctr_nonce for BEE taking the nonce[127-32], and in the LSW I put address r-shifted by 4.

This is confirmed by documents [redacted] and also by code provided by SDK examples:

mastupristi_1-1762101844856.png

I usually use SW key or SW_GP2 key, and this simple algorithm make BEE works well.

 

However, I found another algorithm, significantly more complex:

[Redacted]

I wonder when this algorithm is used by BEE, and I would like more details on how H7 and H8 are used, because it is not clear from the drawing.

 

best regards

Max

Note: Some information or images have been removed as they referred to moderated information.

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
347 Views
Sam_Gao
NXP Employee
NXP Employee

However, I found another algorithm, significantly more complex....

@mastupristi What is your purpose? Please tell me the source of this screenshot, NXP's publicly available information has listed what can be disclosed.

View solution in original post

0 Kudos
Reply
1 Reply
348 Views
Sam_Gao
NXP Employee
NXP Employee

However, I found another algorithm, significantly more complex....

@mastupristi What is your purpose? Please tell me the source of this screenshot, NXP's publicly available information has listed what can be disclosed.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2197077%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3ERT1020%3A%20ctr_nonce%20calculation%20algorithm%2C%20when%20is%20applied%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197077%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EI%20usually%20compute%20the%20ctr_nonce%20for%20BEE%20taking%20the%20nonce%5B127-32%5D%2C%20and%20in%20the%20LSW%20I%20put%20address%20r-shifted%20by%204.%3C%2FP%3E%0A%3CP%3EThis%20is%20confirmed%20by%20documents%20%5Bredacted%5D%20and%20also%20by%20code%20provided%20by%20SDK%20examples%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fmcuboot%2Fblob%2Fmcux_main%2Fboot%2Fnxp_mcux_sdk%2Fencrypted_xip%2Fsrc%2Fencrypted_xip_platform_bee.c%23L799-L801%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mastupristi_1-1762101844856.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mastupristi_1-1762101844856.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363607i5E70847EEBD7C6B2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mastupristi_1-1762101844856.png%22%20alt%3D%22mastupristi_1-1762101844856.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20usually%20use%20SW%20key%20or%20SW_GP2%20key%2C%20and%20this%20simple%20algorithm%20make%20BEE%20works%20well.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHowever%2C%20I%20found%20another%20algorithm%2C%20significantly%20more%20complex%3A%3C%2FP%3E%0A%3CP%3E%5BRedacted%5D%3C%2FP%3E%0A%3CP%3EI%20wonder%20when%20this%20algorithm%20is%20used%20by%20BEE%2C%20and%20I%20would%20like%20more%20details%20on%20how%20H7%20and%20H8%20are%20used%2C%20because%20it%20is%20not%20clear%20from%20the%20drawing.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3Ebest%20regards%3C%2FP%3E%0A%3CP%3EMax%3C%2FP%3E%0A%3CP%3ENote%3A%20Some%20information%20or%20images%20have%20been%20removed%20as%20they%20referred%20to%20moderated%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2197077%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%20102x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20RT1020%3A%20ctr_nonce%20calculation%20algorithm%2C%20when%20is%20applied%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E2%80%99%3CSPAN%3EHowever%2C%20I%20found%20another%20algorithm%2C%20significantly%20more%20complex....%3C%2FSPAN%3E%E2%80%98%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F124967%22%20target%3D%22_blank%22%3E%40mastupristi%3C%2FA%3E%26nbsp%3BWhat%20is%20your%20purpose%3F%26nbsp%3BPlease%20tell%20me%20the%20source%20of%20this%20screenshot%2C%20NXP's%20publicly%20available%20information%20has%20listed%20what%20can%20be%20disclosed.%3C%2FP%3E%3C%2FLINGO-BODY%3E