Crypto Benchmark on STM32U5 MCU
ARM Cortex-M33 @ 160 MHz

This benchmark conducted on B-U585I-IOT02A Discovery kit for IoT node with STM32U5 series 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 STM32U5 microcontroller.

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

Cipher Algorithms

STM32U585 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using Clang with optimization level 3
AlgorithmCBC Encrypt (Software)CBC Decrypt (Software)CCM Encrypt (Software)CCM Decrypt (Software)GCM Encrypt (Software)GCM Decrypt (Software)
3DES0.481 MB/s0.472 MB/s----
AES-1282.363 MB/s2.166 MB/s1.252 MB/s1.121 MB/s1.284 MB/s1.284 MB/s
AES-1922.066 MB/s1.917 MB/s1.082 MB/s0.983 MB/s1.19 MB/s1.189 MB/s
AES-2561.835 MB/s1.717 MB/s0.952 MB/s0.873 MB/s1.108 MB/s1.108 MB/s
AlgorithmCBC Encrypt (Hardware)CBC Decrypt (Hardware)CCM Encrypt (Hardware)CCM Decrypt (Hardware)GCM Encrypt (Hardware)GCM Decrypt (Hardware)
AES-12828.248 MB/s27.855 MB/s14.925 MB/s14.88 MB/s26.246 MB/s25.974 MB/s
AES-25621.413 MB/s21.141 MB/s11.467 MB/s11.441 MB/s20.08 MB/s19.92 MB/s

Hash Algorithms

STM32U585 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using Clang with optimization level 3
AlgorithmSpeed (Software)Speed (Hardware)
MD512.886 MB/s84.745 MB/s
SHA-12.935 MB/s72.992 MB/s
SHA-2242.112 MB/s82.644 MB/s
SHA-2562.112 MB/s83.333 MB/s
SHA-3841.321 MB/s-
SHA-5121.321 MB/s-
SHA3-2241.315 MB/s-
SHA3-2561.243 MB/s-
SHA3-3840.954 MB/s-
SHA3-5120.663 MB/s-

Signature Algorithms

STM32U585 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using Clang with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
RSA (1024 bits)80.6 ms13.4 ms
RSA (2048 bits)458.5 ms50.2 ms
RSA (3072 bits)1356.9 ms107.9 ms
RSA (4096 bits)3006.4 ms191.6 ms
DSA (1024 bits)48 ms100.8 ms
DSA (2048 bits)234.5 ms496.6 ms
AlgorithmSignature Generation (Hardware)Signature Verification (Hardware)
RSA (1024 bits)12.1 ms1 ms
RSA (2048 bits)75.7 ms2.9 ms
RSA (3072 bits)236.2 ms7.1 ms
RSA (4096 bits)535.4 ms12.1 ms
DSA (1024 bits)15.4 ms35.5 ms
DSA (2048 bits)62.1 ms151.7 ms

EC Signature Algorithms

STM32U585 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using Clang with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
ECDSA (P-256)159.9 ms201.5 ms
ECDSA (P-384)300.7 ms376.1 ms
ECDSA (P-521)345 ms411.9 ms
EdDSA (Ed25519)43.9 ms86.6 ms
EdDSA (Ed448)192.4 ms382.8 ms
AlgorithmSignature Generation (Hardware)Signature Verification (Hardware)
ECDSA (P-256)17.2 ms18.3 ms
ECDSA (P-384)44.9 ms50.3 ms
ECDSA (P-521)104.4 ms119.2 ms
EdDSA (Ed25519)21 ms41 ms
EdDSA (Ed448)78 ms154.5 ms

Key Exchange Algorithms

STM32U585 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using Clang with optimization level 3
AlgorithmPublic Key Generation (Software)Shared Secret Computation (Software)
Diffie-Hellman (1024 bits)188.5 ms188.5 ms
Diffie-Hellman (2048 bits)1351.8 ms1351.9 ms
AlgorithmPublic Key Generation (Hardware)Shared Secret Computation (Hardware)
Diffie-Hellman (1024 bits)36.4 ms36.4 ms
Diffie-Hellman (2048 bits)260.9 ms260.9 ms

EC Key Exchange Algorithms

STM32U585 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using Clang with optimization level 3
AlgorithmPublic Key Generation (Software)Shared Secret Computation (Software)
ECDH (P-256)154.3 ms154 ms
ECDH (P-384)287.5 ms292.5 ms
ECDH (P-521)341.8 ms340.6 ms
ECDH (X25519)24.3 ms24.3 ms
ECDH (X448)97.4 ms97.4 ms
AlgorithmPublic Key Generation (Hardware)Shared Secret Computation (Hardware)
ECDH (P-256)22.6 ms22.6 ms
ECDH (P-384)60.6 ms60.6 ms
ECDH (P-521)145 ms145 ms
ECDH (X25519)11.4 ms11.4 ms
ECDH (X448)40.3 ms40.3 ms