RT1046 DCP kDCP_OtpUniqueKey not working

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

RT1046 DCP kDCP_OtpUniqueKey not working

742 次查看
ScottW_7
Contributor I

Hi NXP team,

        I used the RT1046 as the encryption operation unit for DCP, setting GPR10 to use the key from OCOTP (SW_GP2), and then programmed the key(sw_key) into SW_GP2.

        During testing, I found that the data encrypted with AES_ECB using kDCP_OtpKey and kDCP_OtpUniqueKey are identical, they also match the result when I directly use sw_key for AES_ECB encryption.

        According to the Reference Manual, kDCP_OtpUniqueKey should be independent and not the same as kDCP_OtpKey. Why is this happening?

标签 (1)
0 项奖励
回复
1 回复

702 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The difference between kDCP_OtpKey and kDCP_OtpUniqueKey relates to how these keys are derived:

1. kDCP_OtpKey corresponds to the SW_GP2 key that you've programmed into the OCOTP fuses.

2. kDCP_OtpUniqueKey should be a device-unique key derived from the OTPMK (On-Time Programmable Master Key) and should produce different results than kDCP_OtpKey.

The reason you're seeing identical results is likely because your device is operating in an "open" (non-secure) configuration. In this configuration, the DCP doesn't generate true unique keys but instead uses standard values that may be identical across devices.

For kDCP_OtpUniqueKey to produce truly unique results different from kDCP_OtpKey, your RT1046 would need to be configured in a "secure closed" mode, where the OTPMK is properly utilized to create device-specific unique keys.

To verify this, check if you have properly configured the security settings, particularly SEC_CONFIG bits related to the OTPMK. Without proper security configuration, both key options will effectively use the same SW_GP2 value you programmed.

 
 
Regards
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2255890%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERT1046%20DCP%20kDCP_OtpUniqueKey%20%E6%97%A0%E6%B3%95%E5%B7%A5%E4%BD%9C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255890%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8CNXP%E5%9B%A2%E9%98%9F%EF%BC%9A%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%3CSPAN%3E%E6%88%91%E4%BD%BF%E7%94%A8%20RT1046%20%E4%BD%9C%E4%B8%BA%20DCP%20%E7%9A%84%E5%8A%A0%E5%AF%86%E6%93%8D%E4%BD%9C%E5%8D%95%E5%85%83%EF%BC%8C%E5%B0%86%20GPR10%20%E8%AE%BE%E7%BD%AE%E4%B8%BA%E4%BD%BF%E7%94%A8%20OCOTP%20%E7%9A%84%E5%AF%86%E9%92%A5%EF%BC%88SW_GP2%EF%BC%89%EF%BC%8C%E7%84%B6%E5%90%8E%E5%B0%86%E5%AF%86%E9%92%A5%EF%BC%88sw_key%EF%BC%89%E7%BC%96%E5%85%A5%20SW_GP2%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%20%20%20%20%20%20%20%20%E5%9C%A8%E6%B5%8B%E8%AF%95%E8%BF%87%E7%A8%8B%E4%B8%AD%EF%BC%8C%E6%88%91%E5%8F%91%E7%8E%B0%E4%BD%BF%E7%94%A8%20kDCP_OtpKey%20%E5%92%8C%20kDCP_OtpUniqueKey%20%E8%BF%9B%E8%A1%8C%20AES_ECB%20%E5%8A%A0%E5%AF%86%E7%9A%84%E6%95%B0%E6%8D%AE%E5%AE%8C%E5%85%A8%E7%9B%B8%E5%90%8C%EF%BC%8C%E5%AE%83%E4%BB%AC%E4%B9%9F%E4%B8%8E%E7%9B%B4%E6%8E%A5%E4%BD%BF%E7%94%A8%20sw_key%20%E8%BF%9B%E8%A1%8C%20AES_ECB%20%E5%8A%A0%E5%AF%86%E6%97%B6%E7%9A%84%E7%BB%93%E6%9E%9C%E4%B8%80%E8%87%B4%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%A0%B9%E6%8D%AE%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%EF%BC%8CKDCP_OTPuniqueKey%20%E5%BA%94%E8%AF%A5%E6%98%AF%E7%8B%AC%E7%AB%8B%E7%9A%84%EF%BC%8C%E4%B8%8E%20KDCP_OTPKey%20%E4%B8%8D%E4%B8%80%E6%A0%B7%E3%80%82%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BC%9A%E8%BF%99%E6%A0%B7%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2255890%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2256188%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20RT1046%20DCP%20kDCP_OtpUniqueKey%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256188%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3C%2FP%3E%0A%3CDIV%20class%3D%22container%20slds-m-bottom_x-small%22%3E%0A%3CP%3EkDCP_OtpKey%20%E5%92%8C%20kDCP_OtpUniqueKey%20%E4%B9%8B%E9%97%B4%E7%9A%84%E5%8C%BA%E5%88%AB%E4%B8%8E%E8%BF%99%E4%BA%9B%E5%AF%86%E9%92%A5%E7%9A%84%E6%B4%BE%E7%94%9F%E6%96%B9%E5%BC%8F%E6%9C%89%E5%85%B3%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20kDCP_OtpKey%20%E5%AF%B9%E5%BA%94%E4%BA%8E%E4%BD%A0%E5%9C%A8%20OCOTP%20%E7%86%94%E4%B8%9D%E4%B8%AD%E7%BC%96%E7%A8%8B%E7%9A%84%20SW_GP2%20%E5%AF%86%E9%92%A5%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20kDCP_OtpUniqueKey%20%E5%BA%94%E6%98%AF%E6%BA%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%80%82%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%20data-render-key%3D%221%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%20class%3D%22section%20slds-grid%20slds-gutters_direct%20slds-wrap%22%3E%0A%3CDIV%20data-render-key%3D%221%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%20class%3D%22slds-grid%20slds-wrap%20slds-gutters_direct%22%3E%E6%AD%A4%E8%87%B4%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E