Skip to content

Files

This branch is 1 commit ahead of, 10209 commits behind nrfconnect/sdk-nrf:main.

ecdh

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Crypto: ECDH

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:

  1. Initialization:
    1. The Platform Security Architecture (PSA) API is initialized.
    2. Two random Elliptic Curve Cryptography (ECC) key pairs are generated and imported into the PSA crypto keystore.
  2. ECDH key exchange using the generated key pairs.
  3. Cleanup:
    1. 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:

  1. |connect_terminal|
  2. Compile and program the application.
  3. Observe the logs from the application using a terminal emulator.