RT1020: ctr_nonce calculation algorithm, when is applied?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RT1020: ctr_nonce calculation algorithm, when is applied?

跳至解决方案
266 次查看
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.

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
214 次查看
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 项奖励
回复
1 回复
215 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2197077%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3ERT1020%3A%20ctr_nonce%20%E8%AE%A1%E7%AE%97%E7%AE%97%E6%B3%95%EF%BC%8C%E4%BD%95%E6%97%B6%E5%BA%94%E7%94%A8%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197077%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3C%2FP%3E%0A%3CP%3E%E6%88%91%E9%80%9A%E5%B8%B8%E4%BD%BF%E7%94%A8%20nonce%5B127-32%5D%20%E8%AE%A1%E7%AE%97%20BEE%20%E7%9A%84%20ctr_nonce%EF%BC%8C%E5%B9%B6%E5%9C%A8%20LSW%20%E4%B8%AD%E5%B0%86%E5%9C%B0%E5%9D%80%20r%20%E7%A7%BB%E4%BD%8D%204%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%96%87%E4%BB%B6%20%5Bredacted%5D%20%E5%92%8C%20SDK%20%E7%A4%BA%E4%BE%8B%E6%8F%90%E4%BE%9B%E7%9A%84%E4%BB%A3%E7%A0%81%E9%83%BD%E8%AF%81%E5%AE%9E%E4%BA%86%E8%BF%99%E4%B8%80%E7%82%B9%EF%BC%9A%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%3E%E6%88%91%E9%80%9A%E5%B8%B8%E4%BD%BF%E7%94%A8%20SW%20%E5%AF%86%E9%92%A5%E6%88%96%20SW_GP2%20%E5%AF%86%E9%92%A5%EF%BC%8C%E8%BF%99%E7%A7%8D%E7%AE%80%E5%8D%95%E7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83%E4%BB%AC%E6%B6%89%E5%8F%8A%E5%88%B0%E7%BB%8F%E8%BF%87%E5%AE%A1%E6%A0%B8%E7%9A%84%E4%BF%A1%E6%81%AF%E3%80%82%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.MX%20RT102x%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%3CSPAN%3E%E7%84%B6%E8%80%8C%EF%BC%8C%E6%88%91%E5%8F%91%E7%8E%B0%E4%BA%86%E5%8F%A6%E4%B8%80%E7%A7%8D%E7%AE%97%E6%B3%95%EF%BC%8C%E5%85%B6%E5%A4%8D%E6%9D%82%E7%A8%8B%E5%BA%A6%E8%A6%81%E9%AB%98%E5%BE%97%E5%A4%9A....%3C%2FSPAN%3E%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%E4%BD%A0%E7%9A%84%E7%9B%AE%E7%9A%84%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%20%E8%AF%B7%E5%91%8A%E8%AF%89%E6%88%91%E8%BF%99%E5%BC%A0%E6%88%AA%E5%9B%BE%E7%9A%84%E6%9D%A5%E6%BA%90%EF%BC%8C%E6%81%A9%E6%99%BA%E6%B5%A6%E7%9A%84%E5%85%AC%E5%BC%80%E4%BF%A1%E6%81%AF%E5%B7%B2%E7%BB%8F%E5%88%97%E5%87%BA%E4%BA%86%E5%8F%AF%E4%BB%A5%E6%8A%AB%E9%9C%B2%E7%9A%84%E5%86%85%E5%AE%B9%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E