Crypto Benchmark on SAM4L MCU
ARM Cortex-M4 @ 48 MHz

This benchmark conducted on SAM4L8 Xplained Pro Evaluation Kit (ATSAM4L8-XPRO) 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 Microchip SAM4L microcontroller.

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

Cipher Algorithms

SAM4L @ 48 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.08 MB/s0.079 MB/s--
3DES-CTR0.08 MB/s0.08 MB/s--
AES128-CBC0.372 MB/s0.361 MB/s9.115 MB/s9.107 MB/s
AES192-CBC0.326 MB/s0.317 MB/s--
AES256-CBC0.289 MB/s0.283 MB/s--
AES128-CTR0.371 MB/s0.371 MB/s--
AES192-CTR0.325 MB/s0.325 MB/s--
AES256-CTR0.289 MB/s0.289 MB/s--
SM4-CBC0.341 MB/s0.331 MB/s--
SM4-CTR0.34 MB/s0.34 MB/s--

AEAD Algorithms

SAM4L @ 48 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
AES128-GCM0.208 MB/s0.207 MB/s
AES192-GCM0.192 MB/s0.192 MB/s
AES256-GCM0.179 MB/s0.178 MB/s
AES128-CCM0.2 MB/s0.2 MB/s
AES192-CCM0.173 MB/s0.173 MB/s
AES256-CCM0.152 MB/s0.152 MB/s
SM4-GCM0.197 MB/s0.197 MB/s
SM4-CCM0.182 MB/s0.181 MB/s
Ascon-AEAD1280.369 MB/s0.372 MB/s
ChaCha20Poly13050.349 MB/s0.349 MB/s

Hash Algorithms

SAM4L @ 48 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Speed
(Software)
MD51.877 MB/s
SHA-10.445 MB/s
SHA-2240.403 MB/s
SHA-2560.403 MB/s
SHA-3840.207 MB/s
SHA-5120.207 MB/s
SHA3-2240.15 MB/s
SHA3-2560.142 MB/s
SHA3-3840.109 MB/s
SHA3-5120.076 MB/s
SM30.357 MB/s
Ascon-Hash2560.139 MB/s

Signature Algorithms

SAM4L @ 48 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
RSA (1024 bits)536.1 ms99.9 ms
RSA (2048 bits)2803.4 ms367 ms
RSA (3072 bits)7955.5 ms788.3 ms
DSA (1024 bits)306.4 ms644.5 ms
DSA (2048 bits)1409.4 ms2995.1 ms

EC Signature Algorithms

SAM4L @ 48 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
ECDSA (secp256r1)355.6 ms319.7 ms
ECDSA (secp384r1)878 ms793.9 ms
ECDSA (secp521r1)1888 ms1661.1 ms
ECDSA (brainpoolP256r1)669.1 ms666.7 ms
ECDSA (brainpoolP384r1)1785.4 ms1779.7 ms
ECDSA (brainpoolP512r1)3731.4 ms3783.2 ms
SM2317.1 ms317.1 ms
EdDSA (Ed25519)86.5 ms77.5 ms
EdDSA (Ed448)395.5 ms344.3 ms

Key Exchange Algorithms

SAM4L @ 48 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)1064.4 ms1065.1 ms
Diffie-Hellman (2048 bits)7349 ms7349.8 ms

EC Key Exchange Algorithms

SAM4L @ 48 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)315.2 ms314.3 ms
ECDH (secp384r1)770.8 ms769.5 ms
ECDH (secp521r1)1631.5 ms1629.3 ms
ECDH (brainpoolP256r1)622.7 ms621.8 ms
ECDH (brainpoolP384r1)1658.7 ms1657.5 ms
ECDH (brainpoolP512r1)3463.8 ms3462.3 ms
ECDH (SM2)317.1 ms316.2 ms
ECDH (X25519)47 ms47 ms
ECDH (X448)197 ms197 ms