MCUXpresso_MIMXRT1021xxxxx/boards/evkmimxrt1020/mbedtls_examples/mbedtls_benchmark
Yilin Sun 763d32be90
Updated SDK to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-15 22:23:36 +08:00
..
armgcc Updated SDK to v2.15.000 2024-03-15 22:23:36 +08:00
benchmark.c Updated SDK to v2.15.000 2024-03-15 22:23:36 +08:00
board.c Updated SDK to v2.15.000 2024-03-15 22:23:36 +08:00
board.h Updated SDK to v2.15.000 2024-03-15 22:23:36 +08:00
clock_config.c Updated to SDK v2.14.0 2023-08-31 23:30:31 +08:00
clock_config.h Updated to SDK v2.14.0 2023-08-31 23:30:31 +08:00
dcd.c Initial SDK v2.12.0 2022-08-23 23:00:33 +08:00
dcd.h Initial SDK v2.12.0 2022-08-23 23:00:33 +08:00
mbedtls_benchmark_v3_14.xml Updated SDK to v2.15.000 2024-03-15 22:23:36 +08:00
pin_mux.c Initial SDK v2.12.0 2022-08-23 23:00:33 +08:00
pin_mux.h Initial SDK v2.12.0 2022-08-23 23:00:33 +08:00
readme.md Updated SDK to v2.15.000 2024-03-15 22:23:36 +08:00

readme.md

Overview

The mbedTLS Benchmark demo application performs cryptographic algorithm benchmarking and prints results to the terminal.

SDK version

  • Version: 2.15.000

Toolchain supported

  • IAR embedded Workbench 9.40.1
  • Keil MDK 5.38.1
  • GCC ARM Embedded 12.2
  • MCUXpresso 11.8.0

Hardware requirements

  • Mini/micro USB cable
  • EVK-MIMXRT1020 board
  • Personal Computer

Board settings

No special settings are required.

Note: To debug in qspiflash, following steps are needed:

  1. Select the flash target and compile.

  2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.

  3. Start debugging in IDE.

    • Keil: Click "Download (F8)" to program the image to qspiflash first then clicking "Start/Stop Debug Session (Ctrl+F5)" to start debugging. Prepare the Demo ================ Connect a serial cable from the debug UART port of the target board to the PC. Start TeraTerm (http://ttssh2.osdn.jp) and make a connection to the virtual serial port.
  4. Start TeraTerm.

  5. New connection -> Serial.

  6. Set the appropriate COMx port (where x is port number) in the port context menu. The number is provided by the operating system, and could be different from computer to computer. Select the COM number related to the virtual serial port. Confirm the selected port by clicking the "OK" button.

  7. Set following connection parameters in menu Setup -> Serial port. Baud rate: 115200 Data: 8 Parity: none Stop: 1 Flow control: none

  8. Confirm selected parameters by clicking the "OK" button.

Running the demo

When the demo runs successfully, which takes a couple of minutes, the terminal displays similar information like the following:

mbedTLS version 2.26.0 fsys=250105263 Using following implementations: SHA: HASHCRYPT HW accelerated AES: HASHCRYPT HW accelerated AES GCM: Software implementation DES: Software implementation Asymmetric cryptography: CASPER HW accelerated ECC256/384/521 and RSA verify

MD5 : 13871.43 KB/s, 17.33 cycles/byte SHA-1 : 95852.80 KB/s, 2.27 cycles/byte SHA-256 : 104942.33 KB/s, 2.05 cycles/byte SHA-512 : 2016.78 KB/s, 120.89 cycles/byte 3DES : 871.28 KB/s, 280.37 cycles/byte DES : 2118.32 KB/s, 115.08 cycles/byte AES-CBC-128 : 77563.50 KB/s, 2.87 cycles/byte AES-CBC-192 : 66632.58 KB/s, 3.39 cycles/byte AES-CBC-256 : 58500.90 KB/s, 3.90 cycles/byte AES-GCM-128 : 2096.09 KB/s, 116.30 cycles/byte AES-GCM-192 : 2066.84 KB/s, 117.95 cycles/byte AES-GCM-256 : 2042.72 KB/s, 119.35 cycles/byte AES-CCM-128 : 3942.24 KB/s, 61.69 cycles/byte AES-CCM-192 : 3742.94 KB/s, 64.99 cycles/byte AES-CCM-256 : 3589.41 KB/s, 67.79 cycles/byte Poly1305 : 23583.22 KB/s, 10.08 cycles/byte CTR_DRBG (NOPR) : 10029.10 KB/s, 24.08 cycles/byte CTR_DRBG (PR) : 6888.67 KB/s, 35.18 cycles/byte HMAC_DRBG SHA-1 (NOPR) : 2396.60 KB/s, 101.67 cycles/byte HMAC_DRBG SHA-1 (PR) : 2191.93 KB/s, 111.20 cycles/byte HMAC_DRBG SHA-256 (NOPR) : 3152.89 KB/s, 77.21 cycles/byte HMAC_DRBG SHA-256 (PR) : 3152.90 KB/s, 77.21 cycles/byte RSA-1024 : 1636.33 public/s RSA-1024 : 13.00 private/s DHE-2048 : 0.60 handshake/s DH-2048 : 1.00 handshake/s ECDSA-secp521r1 : 11.33 sign/s ECDSA-secp384r1 : 17.67 sign/s ECDSA-secp256r1 : 37.67 sign/s ECDSA-secp521r1 : 8.33 verify/s ECDSA-secp384r1 : 16.67 verify/s ECDSA-secp256r1 : 35.67 verify/s ECDHE-secp521r1 : 6.67 handshake/s ECDHE-secp384r1 : 10.33 handshake/s ECDHE-secp256r1 : 22.00 handshake/s ECDH-secp521r1 : 12.67 handshake/s ECDH-secp384r1 : 20.00 handshake/s ECDH-secp256r1 : 43.33 handshake/s ECDHE-secp521r1 : 3.67 full handshake/s ECDHE-secp384r1 : 5.33 full handshake/s ECDHE-secp256r1 : 11.33 full handshake/s