Crypto Benchmark on STM32F2 MCU
ARM Cortex-M3 @ 120 MHz

This benchmark conducted on STM3221G-EVAL Evaluation board with STM32F217IG 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 STM32F2 microcontroller.

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

Cipher Algorithms

STM32F217 @ 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.216 MB/s0.214 MB/s----
AES-1281.156 MB/s1.141 MB/s0.612 MB/s0.611 MB/s0.709 MB/s0.708 MB/s
AES-1921.001 MB/s0.993 MB/s0.522 MB/s0.522 MB/s0.644 MB/s0.644 MB/s
AES-2560.882 MB/s0.878 MB/s0.457 MB/s0.457 MB/s0.596 MB/s0.596 MB/s
AlgorithmCBC Encrypt (Hardware)CBC Decrypt (Hardware)CCM Encrypt (Hardware)CCM Decrypt (Hardware)GCM Encrypt (Hardware)GCM Decrypt (Hardware)
3DES10.526 MB/s10.526 MB/s----
AES-12825.575 MB/s25.445 MB/s----
AES-19225.51 MB/s25.316 MB/s----
AES-25625.445 MB/s25.252 MB/s----

Hash Algorithms

STM32F217 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSpeed (Software)Speed (Hardware)
MD57.812 MB/s51.813 MB/s
SHA-11.725 MB/s47.619 MB/s
SHA-2241.67 MB/s-
SHA-2561.67 MB/s-
SHA-3840.844 MB/s-
SHA-5120.844 MB/s-
SHA3-2240.554 MB/s-
SHA3-2560.523 MB/s-
SHA3-3840.401 MB/s-
SHA3-5120.278 MB/s-

Signature Algorithms

STM32F217 @ 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)168.9 ms27.3 ms
RSA (2048 bits)967.3 ms101.2 ms
RSA (3072 bits)2879.8 ms218.2 ms
DSA (1024 bits)100.2 ms206.4 ms
DSA (2048 bits)491 ms1024.3 ms

EC Signature Algorithms

STM32F217 @ 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)288.8 ms363.1 ms
ECDSA (P-384)543.4 ms674.6 ms
ECDSA (P-521)636.8 ms760.4 ms
EdDSA (Ed25519)84.1 ms166.5 ms
EdDSA (Ed448)383.1 ms762.1 ms

Key Exchange Algorithms

STM32F217 @ 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)401.8 ms402.1 ms
Diffie-Hellman (2048 bits)2898.7 ms2899 ms

EC Key Exchange Algorithms

STM32F217 @ 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)278.5 ms277.7 ms
ECDH (P-384)514.9 ms522.5 ms
ECDH (P-521)626.9 ms625.2 ms
ECDH (X25519)46.6 ms47.3 ms
ECDH (X448)193.5 ms196.5 ms