ele_pqc#
Overview#
The ELE PQC application provides an example how to use SSSAPI to perform post-quantum cryptography operations on the S200 Secure Subsystem.
Usage of the PQC API is dependent on the latest firmware provided for the secure subsystem via the MCUX SDK.
Running the demo#
The following lines are printed to the serial terminal when the demo program is executed.
ELE PQC via SSSAPI Example
**** ML-DSA-65 SHA3-256 Pre-Hashed Sign and Verify ****
**** without Context and External Work Area ****
Initialize keyPair key object...OK
Allocate keyPair key object...OK
Generate key...OK
Initialize asymmetric signature context...OK
Sign pre-hashed message...OK
Clear the signature context...OK
Initialize asymmetric verification context...OK
Verify pre-hashed message...OK
Clean up...OK
**** ML-DSA-87 Pure Sign and Verify ****
**** with Context and External Work Area ****
Initialize keyPair key object...OK
Allocate keyPair key object...OK
Generate key...OK
Initialize asymmetric signature context...OK
Sign message...OK
Clear the signature context...OK
Initialize asymmetric verification context...OK
Verify message...OK
Clean up...OK
**** ML-KEM-1024 Establish Shared Secret ****
Initialize keyPair key object...OK
Initialize Alice's shared secret key object...OK
Initialize Bob's shared secret key object...OK
Allocate keyPair key object...OK
Allocate Alice's shared secret key object...OK
Allocate Bob's shared secret key object...OK
Generate ML-KEM key pair...OK
Initialize ML-KEM key derivation context...OK
ML-KEM Encapsulate on Bob's side first...OK
ML-KEM Decapsulate on Alice's side...OK
Get the shared secret key K (Bob's)...OK
Get the shared secret key K' (Alice's)...OK
Verify that K' == K...OK
Clean up...OK
End of Example with SUCCESS!!
Example end
Supported Boards#
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-EVK Board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-EVK Board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 Board
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.