Crypto Benchmark on STM32L5 MCU
ARM Cortex-M33 @ 110 MHz

This benchmark conducted on STM32L562E-DK discovery kit with STM32L562 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 STM32L5 microcontroller.

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

Cipher Algorithms

STM32L562 @ 110 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using Clang with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
3DES-CBC0.326 MB/s0.327 MB/s--
3DES-CTR0.314 MB/s0.314 MB/s--
AES128-CBC1.381 MB/s1.305 MB/s17.452 MB/s17.271 MB/s
AES192-CBC1.232 MB/s1.171 MB/s--
AES256-CBC1.112 MB/s1.064 MB/s13.774 MB/s13.605 MB/s
AES128-CTR1.517 MB/s1.517 MB/s17.094 MB/s17.094 MB/s
AES192-CTR1.339 MB/s1.339 MB/s--
AES256-CTR1.198 MB/s1.198 MB/s13.55 MB/s13.495 MB/s
SM4-CBC1.265 MB/s1.102 MB/s--
SM4-CTR1.084 MB/s1.084 MB/s--

AEAD Algorithms

STM32L562 @ 110 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using Clang with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
AES128-GCM0.758 MB/s0.89 MB/s16.286 MB/s16.313 MB/s
AES192-GCM0.703 MB/s0.825 MB/s--
AES256-GCM0.658 MB/s0.768 MB/s12.886 MB/s12.919 MB/s
AES128-CCM0.862 MB/s0.86 MB/s9.861 MB/s9.871 MB/s
AES192-CCM0.746 MB/s0.744 MB/s--
AES256-CCM0.657 MB/s0.655 MB/s7.541 MB/s7.547 MB/s
SM4-GCM0.769 MB/s0.768 MB/s--
SM4-CCM0.656 MB/s0.638 MB/s--
Ascon-AEAD1281.561 MB/s1.587 MB/s--
ChaCha20Poly13052.508 MB/s2.505 MB/s--

Hash Algorithms

STM32L562 @ 110 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using Clang with optimization level 3
Algorithm Speed
(Software)
Speed
(Hardware)
MD58.818 MB/s52.631 MB/s
SHA-11.994 MB/s46.296 MB/s
SHA-2241.553 MB/s51.02 MB/s
SHA-2561.553 MB/s51.282 MB/s
SHA-3840.887 MB/s-
SHA-5120.887 MB/s-
SHA3-2240.886 MB/s-
SHA3-2560.838 MB/s-
SHA3-3840.642 MB/s-
SHA3-5120.446 MB/s-
SM31.402 MB/s-
Ascon-Hash2560.536 MB/s-

Signature Algorithms

STM32L562 @ 110 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using Clang with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
Generation
(Hardware)
Verification
(Hardware)
RSA (1024 bits)121 ms19.3 ms35.5 ms3 ms
RSA (2048 bits)682.8 ms71.7 ms222 ms8.2 ms
RSA (3072 bits)2008.1 ms154.2 ms690 ms20.4 ms
DSA (1024 bits)69.6 ms146.2 ms--
DSA (2048 bits)340.3 ms720.4 ms--

EC Signature Algorithms

STM32L562 @ 110 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using Clang with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
Generation
(Hardware)
Verification
(Hardware)
ECDSA (secp256r1)141 ms123.3 ms46.3 ms96.2 ms
ECDSA (secp384r1)284.6 ms247.5 ms132.9 ms268.8 ms
ECDSA (secp521r1)545.9 ms477.8 ms318.3 ms637 ms
ECDSA (brainpoolP256r1)229.1 ms221.7 ms48.5 ms95.8 ms
ECDSA (brainpoolP384r1)558.5 ms550.3 ms131.8 ms263.6 ms
ECDSA (brainpoolP512r1)1038.4 ms1045.4 ms280.3 ms556.4 ms
SM2104.8 ms104.8 ms49.7 ms49.7 ms
EdDSA (Ed25519)24.7 ms22 ms--
EdDSA (Ed448)119.6 ms104.4 ms--

Key Exchange Algorithms

STM32L562 @ 110 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using Clang with optimization level 3
Algorithm Public Key Generation
(Software)
Shared Secret Computation
(Software)
Diffie-Hellman (1024 bits)276.3 ms276.4 ms
Diffie-Hellman (2048 bits)1973.6 ms1973.8 ms

EC Key Exchange Algorithms

STM32L562 @ 110 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using Clang with optimization level 3
Algorithm Public Key Generation
(Software)
Shared Secret Computation
(Software)
Public Key Generation
(Hardware)
Shared Secret Computation
(Hardware)
ECDH (secp256r1)126.6 ms126.4 ms48.1 ms48 ms
ECDH (secp384r1)253.2 ms253 ms138.7 ms138.5 ms
ECDH (secp521r1)472.6 ms472.3 ms327.1 ms326.8 ms
ECDH (brainpoolP256r1)213.1 ms212.9 ms60.1 ms60.1 ms
ECDH (brainpoolP384r1)521.1 ms520.9 ms163.2 ms163.1 ms
ECDH (brainpoolP512r1)963.2 ms963 ms337.7 ms337.4 ms
ECDH (SM2)104.9 ms104.8 ms49.4 ms49.3 ms
ECDH (X25519)13.1 ms13.1 ms--
ECDH (X448)58.2 ms58.2 ms--