HSE is responding with HSE_SRV_RSP_INVALID_PARAM

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

HSE is responding with HSE_SRV_RSP_INVALID_PARAM

1,428 Views
Prithviraj_k
Contributor I

Microcontroller :S32G399A 
HSE FW :2_64

I am performing Leaf certificate verification on the NXP Bootloader side using Intermediate Public key ,I pass the tbs data ,sign(R &S ) and Public key that is stored in NVM Slot in HSE.

hseResponse_verify = HSE_Ecdsa(HSE_AUTH_DIR_VERIFY, HSE_HASH_ALGO_SHA2_256,NVM_ECC_BOOT_KEY_HANDLE,message, ARRAY_SIZE(message),FALSE,signR ,signS, signRLen, signSLen).

The HSE is responding with HSE_SRV_RSP_INVALID_PARAM

image.png

0 Kudos
Reply
5 Replies

1,410 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Prithviraj_k 
Thanks for your post.

1. I understand that you added your own implemented functions in the NXP bootloader to do the test, is it right? 

2. Where is the data stored?

3. Which version of your NXP bootloader used?

4. May I know if the issue could be reproduced in any of the NXP examples?

 

BR

Chenyin

 

0 Kudos
Reply

1,404 Views
Prithviraj_k
Contributor I
Hello Chenyin ,Thanks for the reply
1.Yes right .I was performing Certificate chain verification ,so i was able to verify Intermediate certificate using Root Public key ,Then now i was using Intermediate Public Key to Verify the Leaf (End entity Certificate).
2.I stored the Data in Global Buffer
( uint8_t message[430]={0};
)
3.Bootloader_S32G3XX_ASR_4.4_M7 Version
4.I haven't tested the example but i use the same method to pass the data ,sign and key for verification.
0 Kudos
Reply

1,380 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Prithviraj_k 

Thanks for your reply.

1. For the bootloader, it may be obtained from GoldVIP, right? which GoldVIP version?

2. Would you mind sharing your original code snippet for the functions(context of function calling with parameters, and the definition of the function used),

If not convenient to share, feel free to let me know.

 

BR

Chenyin

0 Kudos
Reply

1,361 Views
Prithviraj_k
Contributor I

Hello Chenyin,
Could I create a support ticket to discuss the bootloader details and share some code snippets so you can assist me further?

0 Kudos
Reply

1,358 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Prithviraj_k 

Sure, you may add @chenyin to the case description, so that I am able to mention it and continue the support.

 

BR

Chenyin 

0 Kudos
Reply