Crypto Benchmark on ESP32-C6 MCU
RISC-V @ 160 MHz

This benchmark conducted on ESP32-C6-DevKitC-1 Development Board 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 Espressif ESP32-C6 microcontroller.

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

Cipher Algorithms

ESP32-C6 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using GCC with optimization level 3
AlgorithmEncryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
3DES-CBC0.385 MB/s0.38 MB/s--
3DES-CTR0.387 MB/s0.387 MB/s--
AES128-CBC1.43 MB/s1.416 MB/s4.629 MB/s4.329 MB/s
AES192-CBC1.236 MB/s1.228 MB/s--
AES256-CBC1.086 MB/s1.084 MB/s4.587 MB/s4.31 MB/s
AES128-CTR1.426 MB/s1.426 MB/s4.219 MB/s4.237 MB/s
AES192-CTR1.233 MB/s1.233 MB/s--
AES256-CTR1.084 MB/s1.084 MB/s4.219 MB/s4.219 MB/s
SM4-CBC1.386 MB/s1.349 MB/s--
SM4-CTR1.383 MB/s1.385 MB/s--

AEAD Algorithms

ESP32-C6 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using GCC with optimization level 3
AlgorithmEncryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
AES128-GCM0.875 MB/s0.881 MB/s0.911 MB/s0.905 MB/s
AES192-GCM0.798 MB/s0.801 MB/s--
AES256-GCM0.732 MB/s0.735 MB/s0.875 MB/s0.87 MB/s
AES128-CCM0.741 MB/s0.737 MB/s0.796 MB/s0.791 MB/s
AES192-CCM0.634 MB/s0.631 MB/s--
AES256-CCM0.554 MB/s0.552 MB/s0.742 MB/s0.738 MB/s
SM4-GCM0.859 MB/s0.863 MB/s--
SM4-CCM0.717 MB/s0.713 MB/s--
Ascon-AEAD1281.915 MB/s1.845 MB/s--
ChaCha20Poly13052.304 MB/s2.298 MB/s--

Hash Algorithms

ESP32-C6 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using GCC with optimization level 3
AlgorithmSpeed
(Software)
Speed
(Hardware)
MD58.474 MB/s-
SHA-12.012 MB/s12.345 MB/s
SHA-2241.669 MB/s12.345 MB/s
SHA-2561.669 MB/s12.195 MB/s
SHA-3841.265 MB/s-
SHA-5121.265 MB/s-
SHA3-2240.765 MB/s-
SHA3-2560.722 MB/s-
SHA3-3840.555 MB/s-
SHA3-5120.386 MB/s-
SM31.472 MB/s-
Ascon-Hash2560.723 MB/s-

Signature Algorithms

ESP32-C6 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using GCC with optimization level 3
AlgorithmGeneration
(Software)
Verification
(Software)
Generation
(Hardware)
Verification
(Hardware)
RSA (1024 bits)118 ms15 ms32 ms10 ms
RSA (2048 bits)733 ms57 ms147 ms38 ms
RSA (3072 bits)2262 ms123 ms384 ms81 ms
RSA (4096 bits)5128 ms218 ms--
DSA (1024 bits)71 ms143 ms25 ms51 ms
DSA (2048 bits)367 ms753 ms--

EC Signature Algorithms

ESP32-C6 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using GCC with optimization level 3
AlgorithmGeneration
(Software)
Verification
(Software)
Generation
(Hardware)
Verification
(Hardware)
ECDSA (secp256r1)80 ms73 ms84 ms77 ms
ECDSA (secp384r1)208 ms190 ms182 ms164 ms
ECDSA (secp521r1)457 ms405 ms349 ms305 ms
ECDSA (brainpoolP256r1)156 ms157 ms92 ms89 ms
ECDSA (brainpoolP384r1)428 ms429 ms193 ms187 ms
ECDSA (brainpoolP512r1)908 ms925 ms341 ms335 ms
SM270 ms70 ms--
EdDSA (Ed25519)30 ms28 ms--
EdDSA (Ed448)154 ms137 ms--

Key Exchange Algorithms

ESP32-C6 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using GCC with optimization level 3
AlgorithmPublic Key Generation
(Software)
Shared Secret Computation
(Software)
Public Key Generation
(Hardware)
Shared Secret Computation
(Hardware)
Diffie-Hellman (1024 bits)321 ms320 ms41 ms41 ms
Diffie-Hellman (2048 bits)2392 ms2392 ms270 ms270 ms

EC Key Exchange Algorithms

ESP32-C6 @ 160 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using GCC with optimization level 3
AlgorithmPublic Key Generation
(Software)
Shared Secret Computation
(Software)
Public Key Generation
(Hardware)
Shared Secret Computation
(Hardware)
ECDH (secp256r1)70 ms70 ms80 ms80 ms
ECDH (secp384r1)181 ms181 ms172 ms171 ms
ECDH (secp521r1)392 ms392 ms329 ms329 ms
ECDH (brainpoolP256r1)145 ms145 ms85 ms85 ms
ECDH (brainpoolP384r1)397 ms397 ms181 ms180 ms
ECDH (brainpoolP512r1)842 ms841 ms319 ms319 ms
ECDH (SM2)71 ms70 ms--
ECDH (X25519)17 ms16 ms--
ECDH (X448)78 ms77 ms--