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

ATSAM4L @ 48 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.078 MB/s0.077 MB/s----
AES-1280.372 MB/s0.361 MB/s0.2 MB/s0.2 MB/s0.208 MB/s0.207 MB/s
AES-1920.326 MB/s0.317 MB/s0.173 MB/s0.173 MB/s0.192 MB/s0.192 MB/s
AES-2560.289 MB/s0.283 MB/s0.152 MB/s0.152 MB/s0.179 MB/s0.178 MB/s
AlgorithmCBC Encrypt (Hardware)CBC Decrypt (Hardware)CCM Encrypt (Hardware)CCM Decrypt (Hardware)GCM Encrypt (Hardware)GCM Decrypt (Hardware)
AES-1289.124 MB/s9.115 MB/s----

Hash Algorithms

ATSAM4L @ 48 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSpeed (Software)Speed (Hardware)
MD52.191 MB/s-
SHA-10.471 MB/s-
SHA-2240.446 MB/s-
SHA-2560.446 MB/s-
SHA-3840.226 MB/s-
SHA-5120.226 MB/s-
SHA3-2240.153 MB/s-
SHA3-2560.145 MB/s-
SHA3-3840.111 MB/s-
SHA3-5120.077 MB/s-

Signature Algorithms

ATSAM4L @ 48 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
RSA (1024 bits)503.5 ms96.9 ms
RSA (2048 bits)2685 ms361.1 ms
RSA (3072 bits)7703 ms779.6 ms
DSA (1024 bits)300.2 ms630.1 ms
DSA (2048 bits)1391.2 ms2955.5 ms

EC Signature Algorithms

ATSAM4L @ 48 MHz

  • Benchmark generated with CycloneCRYPTO 2.1.6
  • Compiled using ARMCC with optimization level 3
AlgorithmSignature Generation (Software)Signature Verification (Software)
ECDSA (P-256)941.3 ms1181.7 ms
ECDSA (P-384)1740.6 ms2160.5 ms
ECDSA (P-521)1946.7 ms2314.6 ms
EdDSA (Ed25519)245.7 ms484.5 ms
EdDSA (Ed448)1090.4 ms2162.9 ms

Key Exchange Algorithms

ATSAM4L @ 48 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)1040.1 ms1040.9 ms
Diffie-Hellman (2048 bits)7255 ms7255.8 ms

EC Key Exchange Algorithms

ATSAM4L @ 48 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)903.9 ms901.2 ms
ECDH (P-384)1644.9 ms1671 ms
ECDH (P-521)1901.7 ms1895.5 ms
ECDH (X25519)136.4 ms136.5 ms
ECDH (X448)553.5 ms553.5 ms