cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a public_key using Diffie–Hellman or ECDF algorithm from my private_key

WYous.1
Associate III

Hello everyone, I am trying to secure data exchange between my STM32WB55 and an external android app ( with BLE) using the Chachapoly algorithm encryption and decryption example found here: https://www.st.com/en/embedded-software/x-cube-cryptolib.html, and for this as I understand there must be a shared secret key that both me and the app use in our Chachapoly algorithm. I added the ECDH_SharedSecretGeneration code example from the same source which uses the private_key and the external public_key to generate the shared secret key which should be identical for both me and the app.

my question is, is there an example that can help me generate my own public_key from my private_key so that I can send it to the app for it to also generate the shared secret key or is there another way ? because I couldn't find an ECDH example to generate my own public key.

thanks.

0 REPLIES 0