Crypto Benchmark on STM32C5 MCU
ARM Cortex-M33 @ 144 MHz

This benchmark conducted on NUCLEO-C562RE development board with STM32C562RE 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 STM32C5 microcontroller.

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

Cipher Algorithms

STM32C562 @ 144 MHz

  • Benchmark generated with CycloneCRYPTO 2.6.2
  • Compiled using Clang with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
3DES-CBC0.421 MB/s0.42 MB/s--
3DES-CTR0.406 MB/s0.406 MB/s--
AES128-CBC2.087 MB/s1.979 MB/s23.866 MB/s23.529 MB/s
AES192-CBC1.831 MB/s1.747 MB/s--
AES256-CBC1.631 MB/s1.566 MB/s18.484 MB/s18.281 MB/s
AES128-CTR2.01 MB/s2.01 MB/s23.201 MB/s23.201 MB/s
AES192-CTR1.772 MB/s1.771 MB/s--
AES256-CTR1.584 MB/s1.584 MB/s18.148 MB/s18.083 MB/s
SM4-CBC1.825 MB/s1.801 MB/s--
SM4-CTR1.76 MB/s1.76 MB/s--

AEAD Algorithms

STM32C562 @ 144 MHz

  • Benchmark generated with CycloneCRYPTO 2.6.2
  • Compiled using Clang with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
AES128-GCM1.061 MB/s1.051 MB/s22.371 MB/s22.026 MB/s
AES192-GCM0.99 MB/s0.982 MB/s--
AES256-GCM0.927 MB/s0.92 MB/s17.513 MB/s17.271 MB/s
AES128-CCM1.058 MB/s1.057 MB/s13.262 MB/s13.14 MB/s
AES192-CCM0.923 MB/s0.922 MB/s--
AES256-CCM0.82 MB/s0.819 MB/s10.09 MB/s10.02 MB/s
SM4-GCM0.984 MB/s0.976 MB/s--
SM4-CCM0.913 MB/s0.916 MB/s--
Ascon-AEAD1281.887 MB/s1.916 MB/s--
ChaCha20Poly13052.805 MB/s2.8 MB/s--

Hash Algorithms

STM32C562 @ 144 MHz

  • Benchmark generated with CycloneCRYPTO 2.6.2
  • Compiled using Clang with optimization level 3
Algorithm Speed
(Software)
Speed
(Hardware)
MD510.582 MB/s-
SHA-12.606 MB/s58.823 MB/s
SHA-2241.826 MB/s61.728 MB/s
SHA-2561.826 MB/s61.728 MB/s
SHA-3841.02 MB/s-
SHA-5121.02 MB/s-
SHA3-2240.914 MB/s-
SHA3-2560.864 MB/s-
SHA3-3840.663 MB/s-
SHA3-5120.46 MB/s-
SM31.66 MB/s-
Ascon-Hash2560.701 MB/s-

Signature Algorithms

STM32C562 @ 144 MHz

  • Benchmark generated with CycloneCRYPTO 2.6.2
  • Compiled using Clang with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
RSA (1024 bits)95.5 ms14.5 ms
RSA (2048 bits)528.7 ms52.9 ms
RSA (3072 bits)1547.4 ms113.1 ms
RSA (4096 bits)3407.1 ms200.1 ms
DSA (1024 bits)53.6 ms111.4 ms
DSA (2048 bits)258.9 ms544 ms
DSA (3072 bits)557.7 ms1176.9 ms

EC Signature Algorithms

STM32C562 @ 144 MHz

  • Benchmark generated with CycloneCRYPTO 2.6.2
  • Compiled using Clang with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
ECDSA (secp256r1)86.8 ms79.7 ms
ECDSA (secp384r1)209.6 ms191.9 ms
ECDSA (secp521r1)427.4 ms382.2 ms
ECDSA (brainpoolP256r1)176.5 ms177.3 ms
ECDSA (brainpoolP384r1)434.3 ms437 ms
ECDSA (brainpoolP512r1)855.3 ms875.9 ms
SM2164.9 ms65.9 ms
EdDSA (Ed25519)21.9 ms19.4 ms
EdDSA (Ed448)101.4 ms90.9 ms

Key Exchange Algorithms

STM32C562 @ 144 MHz

  • Benchmark generated with CycloneCRYPTO 2.6.2
  • Compiled using Clang with optimization level 3
Algorithm Public Key Generation
(Software)
Shared Secret Computation
(Software)
Diffie-Hellman (1024 bits)216 ms216.1 ms
Diffie-Hellman (2048 bits)1524.9 ms1525.1 ms

EC Key Exchange Algorithms

STM32C562 @ 144 MHz

  • Benchmark generated with CycloneCRYPTO 2.6.2
  • Compiled using Clang with optimization level 3
Algorithm Public Key Generation
(Software)
Shared Secret Computation
(Software)
ECDH (secp256r1)76 ms75.8 ms
ECDH (secp384r1)182.6 ms182.6 ms
ECDH (secp521r1)364.9 ms364.6 ms
ECDH (brainpoolP256r1)163.9 ms163.8 ms
ECDH (brainpoolP384r1)402.4 ms402.3 ms
ECDH (brainpoolP512r1)791.4 ms791.2 ms
ECDH (SM2)75.1 ms75.1 ms
ECDH (X25519)11.9 ms11.9 ms
ECDH (X448)51.8 ms51.8 ms