Crypto: EC J-PAKE

The EC J-PAKE sample demonstrates how to do password-authenticated key exchange using the elliptic curve (EC) version of the password-authenticated key exchange by juggling (J-PAKE) protocol.

Requirements

The sample supports the following development kits:

Hardware platforms

PCA

Board name

Build target

nRF9160 DK

PCA10090

nrf9160dk_nrf9160

nrf9160dk_nrf9160

nRF5340 DK

PCA10095

nrf5340dk_nrf5340

nrf5340dk_nrf5340_cpuapp

nRF52840 DK

PCA10056

nrf52840dk_nrf52840

nrf52840dk_nrf52840

Overview

The sample performs the following operations:

  1. Initializes the Platform Security Architecture (PSA) API.

  2. Goes through the steps for J-PAKE on server and client sides.

  3. Verifies that the derived keys are the same.

Building and running

Testing

After programming the sample to your development kit, complete the following steps to test it:

  1. Connect to the kit with a terminal emulator (for example, PuTTY). See How to connect with PuTTY for the required settings.

  2. Compile and program the application.

  3. Observe the logs from the application using a terminal emulator.