HSE return "HSE_SRV_RSP_INVALID_PARAM" when request for HMAC verify job

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

HSE return "HSE_SRV_RSP_INVALID_PARAM" when request for HMAC verify job

Jump to solution
480 Views
WagdeoA
Contributor I

Hello Nxp team,

I have use case to use HMAC verify job. After triggering the job crypto driver throw DET and the response from HSE is "HSE_SRV_RSP_INVALID_PARAM".

I am not able to understand what wrong with my current configuration. could you please check attached config zip file? 

Need support to resolve issue.

Thanks,

Aditya

0 Kudos
Reply
1 Solution
425 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @WagdeoA 

 

There’s no problem in your configuration.

It works on my side. But one possible issue could be the length of tag (secondaryInputLength).

This can be found in function Crypto_Ipw_HmacVerify:

lukaszadrapa_0-1784036699903.pnglukaszadrapa_0-1784036699903.png

 

If redirection is disabled, it’s necessary to provide the length of tag in bits, not in bytes. Isn’t this the problem?

 

Regards,

Lukas

View solution in original post

0 Kudos
Reply
4 Replies
455 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @WagdeoA 

Could you confirm which device, which RTD and which HSE firmware version you have?

Regards,

Lukas

0 Kudos
Reply
442 Views
WagdeoA
Contributor I

Hi @lukaszadrapa ,

Details:

Device: S32K311

HSE FW: HSE_FW_S32K311_0_2_55_0

RTD: SW32K3_S32M27x_RTD_R21-11_6.0.0_QLP01

Thanks,

Aditya

0 Kudos
Reply
426 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @WagdeoA 

 

There’s no problem in your configuration.

It works on my side. But one possible issue could be the length of tag (secondaryInputLength).

This can be found in function Crypto_Ipw_HmacVerify:

lukaszadrapa_0-1784036699903.pnglukaszadrapa_0-1784036699903.png

 

If redirection is disabled, it’s necessary to provide the length of tag in bits, not in bytes. Isn’t this the problem?

 

Regards,

Lukas

0 Kudos
Reply
324 Views
WagdeoA
Contributor I
Hi Lukas,

Sorry for late reply.
Yes, with length of tag in bits. It works at myside as well.

Thank you!

Best Regards,
Aditya
0 Kudos
Reply