MCUXpresso SDK Documentation

ele_crypto_generic_aes

ele_crypto_generic_aes#

Overview#

The ELE Crypto Generic Example project is a demonstration program that uses the MCUX SDK software to perform generic crypto operations usign plaintext key with EdgeLock Enclave (ELE).

Running the demo#

Example output on terminal:

EdgeLock Enclave secure Sub-System Driver Example:

****************** Load EdgeLock FW *********************** EdgeLock FW loaded and authenticated successfully.

****************** Generic Crypto AES-CBC ****************** AES-CBC Generic crypto encryption success and output match expected result.

AES-CBC Generic crypto decryption success and output match original message.

****************** Generic Crypto AES-GCM ****************** AES-GCM Generic crypto encryption success and output match expected result.

End of Example with SUCCESS!!

Supported Boards#

MIMXRT1180-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1180-EVK board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

EdgeLock Enclave secure Sub-System Driver Example:

****************** Load EdgeLock FW ***********************
EdgeLock FW loaded and authenticated successfully.

****************** Generic Crypto AES-CBC ******************
AES-CBC Generic crypto encryption success and output matches expected result.

AES-CBC Generic crypto decryption success and output matches original message.

****************** Generic Crypto AES-CTR ******************
AES-CTR Generic crypto encryption success and output matches expected result.

AES-CTR Generic crypto decryption success and output matches original message.

****************** Generic Crypto AES-OFB ******************
AES-OFB Generic crypto encryption success and output matches expected result.

AES-OFB Generic crypto decryption success and output matches original message.

****************** Generic Crypto AES-GCM ******************
AES-GCM Generic crypto encryption success and output matches expected result.

End of Example with SUCCESS!!
FRDM-IMXRT1186
Hardware requirements
  • Type-C USB cable

  • FRDM-IMXRT1186 board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

EdgeLock Enclave secure Sub-System Driver Example:

****************** Load EdgeLock FW ***********************
EdgeLock FW loaded and authenticated successfully.

****************** Generic Crypto AES-CBC ******************
AES-CBC Generic crypto encryption success and output matches expected result.

AES-CBC Generic crypto decryption success and output matches original message.

****************** Generic Crypto AES-CTR ******************
AES-CTR Generic crypto encryption success and output matches expected result.

AES-CTR Generic crypto decryption success and output matches original message.

****************** Generic Crypto AES-OFB ******************
AES-OFB Generic crypto encryption success and output matches expected result.

AES-OFB Generic crypto decryption success and output matches original message.

****************** Generic Crypto AES-GCM ******************
AES-GCM Generic crypto encryption success and output matches expected result.

End of Example with SUCCESS!!