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
465 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
410 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
440 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
427 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
411 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
309 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
%3CLINGO-SUB%20id%3D%22lingo-sub-2394329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHSE%20return%20%22HSE_SRV_RSP_INVALID_PARAM%22%20when%20request%20for%20HMAC%20verify%20job%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2394329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Nxp%20team%2C%3C%2FP%3E%3CP%3EI%20have%20use%20case%20to%20use%20HMAC%20verify%20job.%20After%20triggering%20the%20job%20crypto%20driver%20throw%20DET%20and%20the%20response%20from%20HSE%20is%20%22HSE_SRV_RSP_INVALID_PARAM%22.%3C%2FP%3E%3CP%3EI%20am%20not%20able%20to%20understand%20what%20wrong%20with%20my%20current%20configuration.%20could%20you%20please%20check%20attached%20config%20zip%20file%3F%26nbsp%3B%3C%2FP%3E%3CP%3ENeed%20support%20to%20resolve%20issue.%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EAditya%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2394601%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20return%20%22HSE_SRV_RSP_INVALID_PARAM%22%20when%20request%20for%20HMAC%20verify%20job%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2394601%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37795%22%20target%3D%22_blank%22%3E%40lukaszadrapa%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EDetails%3A%3C%2FP%3E%3CP%3EDevice%3A%20S32K311%3C%2FP%3E%3CP%3EHSE%20FW%3A%26nbsp%3BHSE_FW_S32K311_0_2_55_0%3C%2FP%3E%3CP%3ERTD%3A%26nbsp%3BSW32K3_S32M27x_RTD_R21-11_6.0.0_QLP01%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EAditya%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2394436%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20return%20%22HSE_SRV_RSP_INVALID_PARAM%22%20when%20request%20for%20HMAC%20verify%20job%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2394436%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226938%22%20target%3D%22_blank%22%3E%40WagdeoA%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20confirm%20which%20device%2C%20which%20RTD%20and%20which%20HSE%20firmware%20version%20you%20have%3F%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2394999%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20return%20%22HSE_SRV_RSP_INVALID_PARAM%22%20when%20request%20for%20HMAC%20verify%20job%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2394999%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226938%22%20target%3D%22_blank%22%3E%40WagdeoA%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThere%E2%80%99s%20no%20problem%20in%20your%20configuration.%3C%2FP%3E%0A%3CP%3EIt%20works%20on%20my%20side.%20But%20one%20possible%20issue%20could%20be%20the%20length%20of%20tag%20(secondaryInputLength).%3C%2FP%3E%0A%3CP%3EThis%20can%20be%20found%20in%20function%20Crypto_Ipw_HmacVerify%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_0-1784036699903.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1784036699903.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1784036699903.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F392265iD244F6EC80BAAE6D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_0-1784036699903.png%22%20alt%3D%22lukaszadrapa_0-1784036699903.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Elukaszadrapa_0-1784036699903.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIf%20redirection%20is%20disabled%2C%20it%E2%80%99s%20necessary%20to%20provide%20the%20length%20of%20tag%20in%20bits%2C%20not%20in%20bytes.%20Isn%E2%80%99t%20this%20the%20problem%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2397102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20return%20%22HSE_SRV_RSP_INVALID_PARAM%22%20when%20request%20for%20HMAC%20verify%20job%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20Lukas%2C%3CBR%20%2F%3E%3CBR%20%2F%3ESorry%20for%20late%20reply.%3CBR%20%2F%3EYes%2C%20with%20length%20of%20tag%20in%20bits.%20It%20works%20at%20myside%20as%20well.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you!%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EAditya%3C%2FLINGO-BODY%3E