This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issue in Compatibilty with uECC and openssl

Hi. I am trying to generate a shared key via ECDH to encrypt message through UART between nrf52832 and Qualcomm chip. nRF52832 is using uECC and Qualcomm is using openssl. However, the generated shared key on nrf side and Qualcomm chip side is different. I tried using the same private and public key on both side and it is still generating two different shared key. Is uECC compatible with openssl? I will appreciate the help given.

Parents Reply Children
  • Hi. Do you have any other library that works with openssl? Seems like there is a lot of issues with uECC. I can also use uECC library on the Qualcomm chip. I am using uECC_set_rng(&RAND_bytes) with the same private and public key however, the shared key is still different. RAND_bytes is a openssl random bytes generator is this compatible with the nrf random number generator? if no, can you share a random number generator function that I can use which is compatible with nrf.

Related