HSE_VerifyBootImage return HSE_SRV_RSP_VERIFY_FAILED

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

HSE_VerifyBootImage return HSE_SRV_RSP_VERIFY_FAILED

跳至解决方案
1,147 次查看
liyongfeng
Contributor III

I call the HSE_SignBootImage() function to obtain a 28-byte GMAC value. I select the first 16 bytes and program them to the addresses from 0x4000F0 to 0x4000FF. Then, when I execute HSE_VerifyBootImage((uint8_t*) 0x400000), it returns HSE_SRV_RSP_VERIFY_FAILED.What could be the possible reason? Is it due to the big-endian or little-endian issue?

0 项奖励
回复
1 解答
1,064 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @liyongfeng 

I'm sorry for delayed response.

It's necessary to program all 28 bytes (IV + GMAC) behind the IVT:

lukaszadrapa_0-1746439898445.png

I tested it on my side and the verification was successful if I programmed the IV+GMAC like this:

lukaszadrapa_1-1746439953228.png

Regards,

Lukas

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,143 次查看
liyongfeng
Contributor III

liyongfeng_0-1746000217029.png

 

0 项奖励
回复
1,129 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @liyongfeng 

I will check this but I need more time.

And if my understanding is correct, these threads are already outdated because you was already able to run the verification:

https://community.nxp.com/t5/S32K/S32K344-IVT-AUTH/td-p/2088034

https://community.nxp.com/t5/S32K/HSE-SignBootImage-return-HSE-SRV-RSP-INVALID-PARAM/td-p/2089734

I will get back to you as soon as possible.

Regards,

Lukas

0 项奖励
回复
1,065 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @liyongfeng 

I'm sorry for delayed response.

It's necessary to program all 28 bytes (IV + GMAC) behind the IVT:

lukaszadrapa_0-1746439898445.png

I tested it on my side and the verification was successful if I programmed the IV+GMAC like this:

lukaszadrapa_1-1746439953228.png

Regards,

Lukas

 

0 项奖励
回复