Crypto Benchmark on Tiva TM4C129 MCU
ARM Cortex-M4F @ 120 MHz

This benchmark conducted on TM4C1294 Connected LaunchPad™ Evaluation Kit (EK-TM4C1294XL) 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 Texas Instruments Tiva TM4C129 microcontroller.

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

Cipher Algorithms

TM4C129 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
3DES-CBC0.159 MB/s0.162 MB/s10.905 MB/s10.905 MB/s
3DES-CTR0.162 MB/s0.161 MB/s1.927 MB/s1.927 MB/s
AES128-CBC0.752 MB/s0.76 MB/s13.44 MB/s13.386 MB/s
AES192-CBC0.65 MB/s0.662 MB/s12.853 MB/s12.787 MB/s
AES256-CBC0.572 MB/s0.587 MB/s12.345 MB/s12.285 MB/s
AES128-CTR0.776 MB/s0.776 MB/s13.175 MB/s13.123 MB/s
AES192-CTR0.668 MB/s0.668 MB/s12.61 MB/s12.578 MB/s
AES256-CTR0.586 MB/s0.586 MB/s12.121 MB/s12.062 MB/s
SM4-CBC0.825 MB/s0.78 MB/s--
SM4-CTR0.854 MB/s0.854 MB/s--

AEAD Algorithms

TM4C129 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
Encryption
(Hardware)
Decryption
(Hardware)
AES128-GCM0.501 MB/s0.5 MB/s12.87 MB/s12.87 MB/s
AES192-GCM0.452 MB/s0.452 MB/s12.33 MB/s12.33 MB/s
AES256-GCM0.413 MB/s0.412 MB/s11.862 MB/s11.862 MB/s
AES128-CCM0.401 MB/s0.398 MB/s--
AES192-CCM0.342 MB/s0.34 MB/s--
AES256-CCM0.298 MB/s0.296 MB/s--
SM4-GCM0.533 MB/s0.532 MB/s--
SM4-CCM0.445 MB/s0.441 MB/s--
Ascon-AEAD1281.259 MB/s1.268 MB/s--
ChaCha20Poly13051.093 MB/s1.092 MB/s--

Hash Algorithms

TM4C129 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Speed
(Software)
Speed
(Hardware)
MD54.692 MB/s40.16 MB/s
SHA-11.019 MB/s40 MB/s
SHA-2241.11 MB/s39.525 MB/s
SHA-2561.11 MB/s39.682 MB/s
SHA-3840.693 MB/s-
SHA-5120.693 MB/s-
SHA3-2240.541 MB/s-
SHA3-2560.512 MB/s-
SHA3-3840.394 MB/s-
SHA3-5120.275 MB/s-
SM30.974 MB/s-
Ascon-Hash2560.476 MB/s-

Signature Algorithms

TM4C129 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
RSA (1024 bits)167.9 ms29.5 ms
RSA (2048 bits)836.7 ms104.1 ms
DSA (1024 bits)94.1 ms194.1 ms
DSA (2048 bits)412 ms866.7 ms

EC Signature Algorithms

TM4C129 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
ECDSA (secp256r1)106.2 ms95.7 ms
ECDSA (secp384r1)256.3 ms232 ms
ECDSA (secp521r1)531.6 ms467.7 ms
ECDSA (brainpoolP256r1)215.1 ms215.4 ms
ECDSA (brainpoolP384r1)569.7 ms570.8 ms
ECDSA (brainpoolP512r1)1188.1 ms1211.2 ms
SM293.7 ms93.7 ms
EdDSA (Ed25519)25.4 ms22.1 ms
EdDSA (Ed448)134.8 ms111.9 ms

Key Exchange Algorithms

TM4C129 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Public Key Generation
(Software)
Shared Secret Computation
(Software)
Diffie-Hellman (1024 bits)322.1 ms322.2 ms
Diffie-Hellman (2048 bits)2151.5 ms2151.5 ms

EC Key Exchange Algorithms

TM4C129 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Public Key Generation
(Software)
Shared Secret Computation
(Software)
ECDH (secp256r1)93.1 ms92.9 ms
ECDH (secp384r1)222.1 ms221.7 ms
ECDH (secp521r1)454.6 ms454 ms
ECDH (brainpoolP256r1)200.3 ms200 ms
ECDH (brainpoolP384r1)529.4 ms528.9 ms
ECDH (brainpoolP512r1)1102.8 ms1102.3 ms
ECDH (SM2)93.6 ms93.3 ms
ECDH (X25519)13.2 ms13.3 ms
ECDH (X448)61.5 ms61.5 ms