Hi @roneld01 and everyone,
I had a few questions about mbedtls ecdh parameter exchange between a client and server and was wondering if anyone can help me out. I was able to successfully run the example
ecdh_curve25519.c on my system where it generates the shared secret.
The next step is to split the example which means exchanging public keys and the parameters and then generating the shared secret.
I’m running the mbedTLS lib on a Kinetis K24 ARM Cortex-M4 chip.
In my case my hardware which has the K24 micro-controller is the
Server and my Android and iOS app that connects via BLE to my hardware would be the
Now that I want to split the example, which parameters does my firmware (Server side) need to give the Client (iOS/android) to the client?
How do I get those parameters from mbedTLS ecdh library? Is there any example which I can refer to?
The iOS/android app might not use mbedTLS library for ecdh. In that case, how would the handshake work? And what parameters would be sufficient for the handshake?
For an example - I’ve seen that OpenSSL writes keys in
.pemfiles and looks like it’s Base64 encoded whereas the mbedtls library
srv_to_cli32-byte buffers which stores the client and server public keys.
Any help is appreciated!