LIBHSE

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

LIBHSE

1,775 Views
ashwini2024
Contributor II

I am using bsp 40. I am getting the following error when i try to encrypt and decrypt data using libhse. Is it because there is a need to explicitly allocate buffers in HSE reserved memory?


ashwini2024_0-1731995073172.png

 

0 Kudos
Reply
7 Replies

1,704 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @ashwini2024 

Thanks for your reply.

Seems you were working based on the libhse, I've finished the example code for you, and updated it in your case, you may reference it directly.

 

BR

Chenyin

0 Kudos
Reply

1,721 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @ashwini2024 

You are very welcome.

I found a bug during the test this afternoon, and plan to fix it soon, I could confirm that your case will be updated by tomorrow.

You may check the sample/procedure in your support portal.

Sorry for your inconvenience.

 

BR

Chenyin

0 Kudos
Reply

1,718 Views
ashwini2024
Contributor II

root@s32g399ardb3:/usr/bin# ./hse-encrypt 
[   35.001646] hse-uio 40210000.mu0b: device hse-uio v2.1 open, instances: 1
libhse: i[   35.009096] hse-uio 40210000.mu0b: device hse-uio v2.1 released, instances: 0
nitialized, firmware status 0x0920
libhse: service response 0x33D6D4F1 on channel 1
libhse: read reply failed on channel 1
DEMO: hash request failed: error 14
libhse: closed


I am getting the above error.

0 Kudos
Reply

1,727 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @ashwini2024 

Sure, I have basically finished the development of it based on the examples of libpkcs, once finished the test, I will update the procedure of building, integrating, excecuting to the support case you created.

I suggest checking the status of your case late today or tomorrow.

 

BR

Chenyin

0 Kudos
Reply

1,723 Views
ashwini2024
Contributor II

Thank you @chenyin_h for your help.

Tags (1)
0 Kudos
Reply

1,759 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @ashwini2024 

Thanks for the post and sorry for the late reply.

I suggest developing the code based on libpkcs for hash related operation.

And I will update your support case in 1-2 days with examples based on libpkcs. you may check the status there no later than this Thursday.

 

BR

Chenyin

0 Kudos
Reply

1,757 Views
ashwini2024
Contributor II

If it's not too much trouble, could you also kindly share the complete procedure for how the code can be integrated into the system, compiled, and executed?

This would help me better understand the implementation process and ensure I can execute it correctly without missing any steps.

Thank you in advance for your time and support!



0 Kudos
Reply