Crypto Benchmark on STM32F4 MCU
ARM Cortex-M4 @ 180 MHz

This benchmark conducted on STM32 Nucleo-144 development board with STM32F439ZI 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 STM32F4 microcontroller.

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

See also software crypto performance comparison: STM32F4 versus STM32H5

Cipher Algorithms

STM32F439 @ 180 MHz

  • Benchmark generated with CycloneCRYPTO 2.2.4
  • 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.285 MB/s0.282 MB/s----
AES-1281.514 MB/s1.482 MB/s0.805 MB/s0.805 MB/s0.981 MB/s0.979 MB/s
AES-1921.305 MB/s1.283 MB/s0.682 MB/s0.682 MB/s0.885 MB/s0.883 MB/s
AES-2561.147 MB/s1.128 MB/s0.597 MB/s0.597 MB/s0.815 MB/s0.814 MB/s
AlgorithmCBC Encrypt (Hardware)CBC Decrypt (Hardware)CCM Encrypt (Hardware)CCM Decrypt (Hardware)GCM Encrypt (Hardware)GCM Decrypt (Hardware)
3DES15.797 MB/s15.797 MB/s----
AES-12840 MB/s39.682 MB/s33.444 MB/s32.679 MB/s37.735 MB/s37.037 MB/s
AES-19239.84 MB/s39.682 MB/s33.444 MB/s32.573 MB/s37.453 MB/s36.9 MB/s
AES-25639.84 MB/s39.525 MB/s33.333 MB/s32.894 MB/s37.453 MB/s37.037 MB/s

Hash Algorithms

STM32F439 @ 180 MHz

  • Benchmark generated with CycloneCRYPTO 2.2.4
  • Compiled using Clang with optimization level 3
AlgorithmSpeed (Software)Speed (Hardware)
MD512.033 MB/s78.125 MB/s
SHA-12.804 MB/s71.942 MB/s
SHA-2241.942 MB/s75.187 MB/s
SHA-2561.942 MB/s75.757 MB/s
SHA-3841.18 MB/s-
SHA-5121.181 MB/s-
SHA3-2241.264 MB/s-
SHA3-2561.195 MB/s-
SHA3-3840.917 MB/s-
SHA3-5120.638 MB/s-

Signature Algorithms

STM32F439 @ 180 MHz

  • Benchmark generated with CycloneCRYPTO 2.2.4
  • Compiled using Clang with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
RSA (1024 bits)84.1 ms15 ms
RSA (2048 bits)448.6 ms55.4 ms
RSA (3072 bits)1290.6 ms118.3 ms
DSA (1024 bits)49.7 ms105.2 ms
DSA (2048 bits)230.8 ms493.9 ms

EC Signature Algorithms

STM32F439 @ 180 MHz

  • Benchmark generated with CycloneCRYPTO 2.2.4
  • Compiled using Clang with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
ECDSA (P-256)180.4 ms227.2 ms
ECDSA (P-384)339 ms421.6 ms
ECDSA (P-521)374.7 ms445.9 ms
EdDSA (Ed25519)47.3 ms93.5 ms
EdDSA (Ed448)215.1 ms428.1 ms

Key Exchange Algorithms

STM32F439 @ 180 MHz

  • Benchmark generated with CycloneCRYPTO 2.2.4
  • Compiled using Clang with optimization level 3
AlgorithmPublic Key Generation (Software)Shared Secret Computation (Software)
Diffie-Hellman (1024 bits)178.1 ms178.3 ms
Diffie-Hellman (2048 bits)1238.3 ms1238.4 ms

EC Key Exchange Algorithms

STM32F439 @ 180 MHz

  • Benchmark generated with CycloneCRYPTO 2.2.4
  • Compiled using Clang with optimization level 3
AlgorithmPublic Key Generation (Software)Shared Secret Computation (Software)
ECDH (P-256)174.3 ms173.9 ms
ECDH (P-384)322.5 ms327.5 ms
ECDH (P-521)369 ms367.6 ms
ECDH (X25519)26.1 ms26.1 ms
ECDH (X448)109.1 ms109.1 ms