Crypto Benchmark on STM32G4 MCU
ARM Cortex-M4 @ 170 MHz

This benchmark conducted on STM32G484E-EVAL Evaluation board with STM32G484QE 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 STM32G4 microcontroller.

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

Cipher Algorithms

STM32G484 @ 170 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.185 MB/s0.184 MB/s----
AES-1281.061 MB/s1.073 MB/s0.579 MB/s0.579 MB/s0.647 MB/s0.645 MB/s
AES-1920.908 MB/s0.925 MB/s0.488 MB/s0.487 MB/s0.585 MB/s0.583 MB/s
AES-2560.793 MB/s0.811 MB/s0.424 MB/s0.424 MB/s0.542 MB/s0.54 MB/s
AlgorithmCBC Encrypt (Hardware)CBC Decrypt (Hardware)CCM Encrypt (Hardware)CCM Decrypt (Hardware)GCM Encrypt (Hardware)GCM Decrypt (Hardware)
AES-12824.154 MB/s24.271 MB/s13.623 MB/s13.44 MB/s21.598 MB/s20.964 MB/s
AES-25619.646 MB/s19.723 MB/s10.822 MB/s10.695 MB/s17.889 MB/s17.452 MB/s

Hash Algorithms

STM32G484 @ 170 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSpeed (Software)Speed (Hardware)
MD53.663 MB/s-
SHA-12.449 MB/s-
SHA-2242.26 MB/s-
SHA-2562.259 MB/s-
SHA-3841.153 MB/s-
SHA-5121.154 MB/s-
SHA3-2240.271 MB/s-
SHA3-2560.256 MB/s-
SHA3-3840.196 MB/s-
SHA3-5120.135 MB/s-

Signature Algorithms

STM32G484 @ 170 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
RSA (1024 bits)103.9 ms18 ms
RSA (2048 bits)514 ms65.9 ms
RSA (3072 bits)1439.1 ms141.3 ms
RSA (4096 bits)3096.9 ms249.4 ms
DSA (1024 bits)59.6 ms121.7 ms
DSA (2048 bits)260.7 ms548.1 ms

EC Signature Algorithms

STM32G484 @ 170 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
ECDSA (P-256)253.9 ms318.4 ms
ECDSA (P-384)444.3 ms548.5 ms
ECDSA (P-521)486.5 ms577.4 ms
EdDSA (Ed25519)49.3 ms97.3 ms
EdDSA (Ed448)213.8 ms421.9 ms

Key Exchange Algorithms

STM32G484 @ 170 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)201.7 ms201.8 ms
Diffie-Hellman (2048 bits)1344.7 ms1344.6 ms

EC Key Exchange Algorithms

STM32G484 @ 170 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)244.8 ms244.1 ms
ECDH (P-384)417.4 ms422.8 ms
ECDH (P-521)473.2 ms472.1 ms
ECDH (X25519)27.8 ms27.9 ms
ECDH (X448)110.4 ms110.4 ms