The ECDH sample shows how to perform an Elliptic-curve Diffie–Hellman key exchange to allow two parties to obtain a shared secret.
The sample supports the following development kits:
.. table-from-sample-yaml::
The sample performs the following operations:
- Initialization:
- The Platform Security Architecture (PSA) API is initialized.
- Two random Elliptic Curve Cryptography (ECC) key pairs are generated and imported into the PSA crypto keystore.
- ECDH key exchange using the generated key pairs.
- Cleanup:
- The key pairs are removed from the PSA crypto keystore.
After programming the sample to your development kit, complete the following steps to test it:
- |connect_terminal|
- Compile and program the application.
- Observe the logs from the application using a terminal emulator.