Skip to main content
Associate
July 6, 2023
Solved

Computing ECDH shared secret on STM32U585 using HAL_PKA_ECCMul

  • July 6, 2023
  • 3 replies
  • 2488 views

I'm trying to compute the ECDH shared secret by multiplying local private key and other party public key using HAL_PKA_ECCMul. For some reason it is not working. I'm using curve secp256r1. But I'm able to use HAL_PKA_ECCMul to generate public key by multiplying a private key with the secp256r1 generator x and y.

This topic has been closed for replies.
Best answer by Madhu_Kurimeti

I found out that I was initializing the crypto accelerator twice. That's why the issue was happening. Closing this ticket.

3 replies

Tesla DeLorean
Guru
July 6, 2023
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Associate
July 8, 2023

@Tesla DeLorean I checked the thread you mentioned, but no one replied with solution in that.

Tesla DeLorean
Guru
July 8, 2023

Yes, not sure who has responsibility for supporting this code / library here, so flagging to staff, and linking to a thread of similar issue that this might have been better posting against.

Not sure I'm seeing any code attachment that quickly demonstrates / confirms the issue in either thread, which might go a way to explaining the lack of responses.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Madhu_KurimetiAuthorBest answer
Associate
July 11, 2023

I found out that I was initializing the crypto accelerator twice. That's why the issue was happening. Closing this ticket.