Crypto Benchmark on STM32L4+ MCU
ARM Cortex-M4 @ 120 MHz

This benchmark conducted on B-L4S5I-IOT01A STM32L4+ Discovery kit with STM32L4S5VIT6 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

STM32L4S5 @ 120 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.167 MB/s0.166 MB/s----
AES-1280.926 MB/s0.943 MB/s0.49 MB/s0.49 MB/s0.527 MB/s0.526 MB/s
AES-1920.798 MB/s0.818 MB/s0.417 MB/s0.417 MB/s0.482 MB/s0.481 MB/s
AES-2560.701 MB/s0.72 MB/s0.365 MB/s0.365 MB/s0.448 MB/s0.447 MB/s
AlgorithmCBC Encrypt (Hardware)CBC Decrypt (Hardware)CCM Encrypt (Hardware)CCM Decrypt (Hardware)GCM Encrypt (Hardware)GCM Decrypt (Hardware)
AES-12817.513 MB/s17.482 MB/s9.9 MB/s9.794 MB/s15.723 MB/s15.455 MB/s
AES-25614.204 MB/s14.204 MB/s7.836 MB/s7.727 MB/s13.02 MB/s12.787 MB/s

Hash Algorithms

STM32L4S5 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSpeed (Software)Speed (Hardware)
MD53.595 MB/s51.546 MB/s
SHA-11.722 MB/s47.393 MB/s
SHA-2241.53 MB/s50.251 MB/s
SHA-2561.53 MB/s50.505 MB/s
SHA-3840.752 MB/s-
SHA-5120.752 MB/s-
SHA3-2240.271 MB/s-
SHA3-2560.256 MB/s-
SHA3-3840.196 MB/s-
SHA3-5120.136 MB/s-

Signature Algorithms

STM32L4S5 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
RSA (1024 bits)159.4 ms29.6 ms
RSA (2048 bits)810.9 ms109.1 ms
RSA (3072 bits)2285.8 ms234.3 ms
DSA (1024 bits)92.9 ms192.6 ms
DSA (2048 bits)415.3 ms879.1 ms

EC Signature Algorithms

STM32L4S5 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
ECDSA (P-256)349.6 ms438.7 ms
ECDSA (P-384)630.4 ms780.5 ms
ECDSA (P-521)687.1 ms816.3 ms
EdDSA (Ed25519)74.9 ms147.8 ms
EdDSA (Ed448)323.2 ms640.3 ms

Key Exchange Algorithms

STM32L4S5 @ 120 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)314.5 ms314.2 ms
Diffie-Hellman (2048 bits)2127.8 ms2125.5 ms

EC Key Exchange Algorithms

STM32L4S5 @ 120 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)336.2 ms335.2 ms
ECDH (P-384)594.7 ms603.4 ms
ECDH (P-521)670.4 ms668.1 ms
ECDH (X25519)42.1 ms42.1 ms
ECDH (X448)166.5 ms166.5 ms