1.4 Key Agreement Scheme

This example application shows how to use the Crypto v4 library's API for Key Agreement Scheme functions.

Description

This demo application tests the functionality and performance the Crypto v4 library's API KAS hardware and software functions. Hardware and software selection is located inside the Crypto library in MCC. This demo application tests both compressed and uncompressed keys. Compressed keys only work with software.

Downloading and Building the Application

To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.

Path of the application within the repository is apps/crypto_examples/kas/firmware.

To build the application, refer to the following table and open the project using its IDE.

Project NameDescription
kas.XMPLABX project for PIC32CZ CA9X Curiosity Ultra Development Board
Note: Make sure to enable the following algorithms in MCC.

Setting Up the Hardware

The following table shows the target hardware for the application projects.

PIC32CZ CA9X Curiosity Ultra Development Board

  • Connect the ICD5 to the debugger port on the board and computer using a type c cable.
  • Connect the Debug USB port on the board to the computer using a micro USB cable.
  • Open a serial monitor with baud rate set to 115200, 8-bit data, no parity, 1 stop bit.

Running the Application

  1. Build and Program the application using MPLABX IDE v6.20
  2. Observe the serial COM output