Crypto Benchmark on STM32L4 MCU
ARM Cortex-M4 @ 80 MHz

This benchmark conducted on STM32 Nucleo-144 development board with STM32L4A6ZG MCU will help you in qualifying performance of CycloneCRYPTO (Cryptography library), CycloneSSL (TLS 1.3 & DTLS 1.2 library), CycloneSSH (SSH library with SCP & SFTP protocols), CycloneIPSEC (IPsec/IKEv2 library) and CycloneTCP (TCP/IPv4/IPv6 stack with secure protocols like HTTPS, FTPS, MQTTS, Secure WebSocket, Secure CoAP, Secure Modbus/TCP, SNMPv3...) running on STMicroelectronics STM32L4 microcontroller.

STM32L4 MCU also includes crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.

Cipher Algorithms

STM32L4A6 @ 80 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmCBC Encrypt (Software)CBC Decrypt (Software)CCM Encrypt (Software)CCM Decrypt (Software)GCM Encrypt (Software)GCM Decrypt (Software)
3DES0.124 MB/s0.121 MB/s----
AES-1280.689 MB/s0.704 MB/s0.364 MB/s0.363 MB/s0.4 MB/s0.398 MB/s
AES-1920.594 MB/s0.611 MB/s0.309 MB/s0.309 MB/s0.364 MB/s0.363 MB/s
AES-2560.523 MB/s0.54 MB/s0.271 MB/s0.27 MB/s0.338 MB/s0.337 MB/s
AlgorithmCBC Encrypt (Hardware)CBC Decrypt (Hardware)CCM Encrypt (Hardware)CCM Decrypt (Hardware)GCM Encrypt (Hardware)GCM Decrypt (Hardware)
AES-1285.109 MB/s5.109 MB/s--4.796 MB/s4.746 MB/s
AES-2563.776 MB/s3.776 MB/s--3.563 MB/s3.538 MB/s

Hash Algorithms

STM32L4A6 @ 80 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSpeed (Software)Speed (Hardware)
MD52.779 MB/s46.728 MB/s
SHA-11.148 MB/s40.65 MB/s
SHA-2241.091 MB/s45.662 MB/s
SHA-2561.091 MB/s45.662 MB/s
SHA-3840.563 MB/s-
SHA-5120.563 MB/s-
SHA3-2240.211 MB/s-
SHA3-2560.199 MB/s-
SHA3-3840.153 MB/s-
SHA3-5120.106 MB/s-

Signature Algorithms

STM32L4A6 @ 80 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
RSA (1024 bits)210.7 ms38.9 ms
RSA (2048 bits)1077.6 ms143.4 ms
DSA (1024 bits)123 ms255 ms
DSA (2048 bits)552.1 ms1167.4 ms

EC Signature Algorithms

STM32L4A6 @ 80 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
ECDSA (P-256)461.6 ms579.5 ms
ECDSA (P-384)831.3 ms1028.3 ms
ECDSA (P-521)905 ms1075.6 ms
EdDSA (Ed25519)103.7 ms204.5 ms
EdDSA (Ed448)449.9 ms891.1 ms

Key Exchange Algorithms

STM32L4A6 @ 80 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmPublic Key Generation (Software)Shared Secret Computation (Software)
Diffie-Hellman (1024 bits)418.5 ms418.7 ms
Diffie-Hellman (2048 bits)2844.5 ms2844.6 ms

EC Key Exchange Algorithms

STM32L4A6 @ 80 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmPublic Key Generation (Software)Shared Secret Computation (Software)
ECDH (P-256)444.2 ms443.1 ms
ECDH (P-384)783.9 ms795.3 ms
ECDH (P-521)882.8 ms880 ms
ECDH (X25519)58 ms58 ms
ECDH (X448)231 ms230.9 ms