Debug authentication Response for MCXW72

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

Debug authentication Response for MCXW72

76 次查看
Surdej
Contributor I

I am trying to unlock the debug port on the MCXW72. Unlocking it with the MCUXpresso Secure Provisioning Tool works correctly, but I am attempting to unlock the port using my own application based on the Debug Credential (DC), the DCK private key, and the DAC received from the device.

The documentation is very unclear in this area (and in some places even incorrect).

As I understand it, the DAR consists of:

DAR = DC + AB + UUID (from DAC) + Signature

(Figure 50 in the Reference Manual shows the UUID and AB fields in the wrong order.)

I would like to calculate the Signature using OpenSSL, however I cannot determine exactly what data should be signed:

a) DC + CV (from DAC)

b) DC + AB + CV (from DAC)

c) DC + AB + UUID (from DAC) + CV (from DAC)

or something else entirely?

The documentation states that the signature binds the DAR to the challenge vector (CV), but it does not clearly specify the exact byte sequence that must be hashed and signed. Could you please clarify the precise data that is used to generate the DAR signature?

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

41 次查看
marek-trmac
NXP Employee
NXP Employee

Hi @Surdej 

Secure Provisioning Tool is built on top of Secure Provisioning SDK, see https://spsdk.readthedocs.io/en/latest/

This is open source so you can find the answers there.

 

Regards,
Marek


NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2397399%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E8%B0%83%E8%AF%95%20MCXW72%20%E7%9A%84%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E5%93%8D%E5%BA%94%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397399%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E8%A7%A3%E9%94%81%20MCXW72%20%E4%B8%8A%E7%9A%84%E8%B0%83%E8%AF%95%E7%AB%AF%E5%8F%A3%E3%80%82%E4%BD%BF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DC%20%2B%20AB%20%2B%20UUID%EF%BC%88%E6%9D%A5%E8%87%AA%20DAC%EF%BC%89%2B%20%E7%AD%BE%E5%90%8D%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3E%EF%BC%88%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%E4%B8%AD%E7%9A%84%E5%9B%BE%2050%20%E6%98%BE%E7%A4%BA%20UUID%20%E5%92%8C%20AB%20%E5%AD%97%E6%AE%B5%E9%A1%BA%E5%BA%8F%E9%94%99%E8%AF%AF%E3%80%82%EF%BC%89%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3E%E6%88%91%E6%83%B3%E4%BD%BF%E7%94%A8%20OpenSSL%20%E8%AE%A1%E7%AE%97%E7%AD%BE%E5%90%8D%EF%BC%8C%E4%BD%86%E6%88%91%E6%97%A0%E6%B3%95%E7%A1%AE%E5%AE%9A%E5%BA%94%E8%AF%A5%E5%AF%B9%E5%93%AA%E4%BA%9B%E6%95%B0%E6%8D%AE%E8%BF%9B%E8%A1%8C%E7%AD%BE%E5%90%8D%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3Ea)%3C%2FSPAN%3E%3CSPAN%3E%E7%9B%B4%E6%B5%81%20%2B%20%E6%81%92%E5%8E%8B%EF%BC%88%E6%9D%A5%E8%87%AA%E6%95%B0%E6%A8%A1%E8%BD%AC%E6%8D%A2%E5%99%A8%EF%BC%89%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3Eb)%3C%2FSPAN%3E%20%3CSPAN%3EDC%20%2B%20AB%20%2B%20CV%EF%BC%88%E6%9D%A5%E8%87%AA%20DAC%EF%BC%89%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3Ec)%3C%2FSPAN%3E%20%3CSPAN%3EDC%20%2B%20AB%20%2B%20UUID%EF%BC%88%E6%9D%A5%E8%87%AA%20DAC%EF%BC%89%2B%20CV%EF%BC%88%E6%9D%A5%E8%87%AA%20DAC%EF%BC%89%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3E%E6%88%96%E8%80%85%E5%AE%8C%E5%85%A8%E6%98%AF%E5%85%B6%E4%BB%96%E5%8E%9F%E5%9B%A0%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%96%87%E6%A1%A3%E6%8C%87%E5%87%BA%EF%BC%8C%E7%AD%BE%E5%90%8D%E5%B0%86%20DAR%20%E4%B8%8E%E6%8C%91%E6%88%98%E5%90%91%E9%87%8F%20(CV)%20%E7%BB%91%E5%AE%9A%EF%BC%8C%E4%BD%86%E5%B9%B6%E6%9C%AA%E6%98%8E%E7%A1%AE%E6%8C%87%E5%AE%9A%E5%BF%85%E9%A1%BB%E8%BF%9B%E8%A1%8C%E5%93%88%E5%B8%8C%E5%92%8C%E7%AD%BE%E5%90%8D%E7%9A%84%E7%A1%AE%E5%88%87%E5%AD%97%E8%8A%82%E5%BA%8F%E5%88%97%E3%80%82%E8%AF%B7%E9%97%AE%E8%83%BD%E5%90%A6%E8%AF%A6%E7%BB%86%E8%AF%B4%E6%98%8E%E7%94%A8%E4%BA%8E%E7%94%9F%E6%88%90DAR%E7%89%B9%E5%BE%81%E7%9A%84%E5%85%B7%E4%BD%93%E6%95%B0%E6%8D%AE%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2397399%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMCXA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E5%AE%89%E5%85%A8%EF%BC%88Edgelock%20%7C%20%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%20%7C%20OTP%EF%BC%89%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2397519%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Debug%20authentication%20Response%20for%20MCXW72%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397519%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F264672%22%20target%3D%22_blank%22%3E%40Surdej%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E5%AE%89%E5%85%A8%E9%85%8D%E7%BD%AE%E5%B7%A5%E5%85%B7%E5%9F%BA%E4%BA%8E%E5%AE%89%E5%85%A8%E9%85%8D%E7%BD%AE%20SDK%20%E6%9E%84%E5%BB%BA%EF%BC%8C%E8%AF%B7%E5%8F%82%E9%98%85%3CA%20href%3D%22https%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E8%BF%99%E6%98%AF%E5%BC%80%E6%BA%90%E8%BD%AF%E4%BB%B6%EF%BC%8C%E6%89%80%E4%BB%A5%E4%BD%A0%E5%8F%AF%E4%BB%A5%E5%9C%A8%E9%82%A3%E9%87%8C%E6%89%BE%E5%88%B0%E7%AD%94%E6%A1%88%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E