Crypto Benchmark on SAM4E MCU
ARM Cortex-M4 @ 120 MHz

This benchmark conducted on SAM4E Xplained Pro Evaluation Kit (ATSAM4E-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 SAM4E microcontroller.

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

Cipher Algorithms

SAM4E @ 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.214 MB/s0.216 MB/s--
3DES-CTR0.201 MB/s0.202 MB/s--
AES128-CBC1.235 MB/s1.182 MB/s22.026 MB/s22.026 MB/s
AES192-CBC1.096 MB/s1.061 MB/s21.186 MB/s21.186 MB/s
AES256-CBC0.985 MB/s0.957 MB/s20.408 MB/s20.408 MB/s
AES128-CTR1.326 MB/s1.326 MB/s--
AES192-CTR1.182 MB/s1.176 MB/s--
AES256-CTR1.057 MB/s1.056 MB/s--
SM4-CBC1.43 MB/s1.378 MB/s--
SM4-CTR1.375 MB/s1.374 MB/s--

AEAD Algorithms

SAM4E @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Encryption
(Software)
Decryption
(Software)
AES128-GCM0.634 MB/s0.636 MB/s
AES192-GCM0.592 MB/s0.592 MB/s
AES256-GCM0.555 MB/s0.558 MB/s
AES128-CCM0.669 MB/s0.679 MB/s
AES192-CCM0.581 MB/s0.595 MB/s
AES256-CCM0.521 MB/s0.534 MB/s
SM4-GCM0.748 MB/s0.747 MB/s
SM4-CCM0.763 MB/s0.762 MB/s
Ascon-AEAD1281.466 MB/s1.466 MB/s
ChaCha20Poly13050.982 MB/s0.98 MB/s

Hash Algorithms

SAM4E @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Speed
(Software)
MD54.488 MB/s
SHA-11.55 MB/s
SHA-2241.514 MB/s
SHA-2561.514 MB/s
SHA-3840.71 MB/s
SHA-5120.711 MB/s
SHA3-2240.335 MB/s
SHA3-2560.317 MB/s
SHA3-3840.244 MB/s
SHA3-5120.169 MB/s
SM31.31 MB/s
Ascon-Hash2560.569 MB/s

Signature Algorithms

SAM4E @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
RSA (1024 bits)168.6 ms30.6 ms
RSA (2048 bits)872.9 ms111.7 ms
RSA (3072 bits)2469.6 ms239.4 ms
RSA (4096 bits)5331.1 ms422.2 ms
DSA (1024 bits)95.5 ms199.6 ms
DSA (2048 bits)435.6 ms922.2 ms

EC Signature Algorithms

SAM4E @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
ECDSA (secp256r1)107.8 ms97 ms
ECDSA (secp384r1)266.2 ms239.2 ms
ECDSA (secp521r1)550.3 ms481.1 ms
ECDSA (brainpoolP256r1)191.1 ms189.3 ms
ECDSA (brainpoolP384r1)504.2 ms499.9 ms
ECDSA (brainpoolP512r1)1050.5 ms1058.6 ms
SM297.3 ms97.3 ms
EdDSA (Ed25519)29.1 ms25.5 ms
EdDSA (Ed448)142.9 ms125.9 ms

Key Exchange Algorithms

SAM4E @ 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)334.5 ms334.5 ms
Diffie-Hellman (2048 bits)2287.3 ms2287.3 ms

EC Key Exchange Algorithms

SAM4E @ 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)96.6 ms96.2 ms
ECDH (secp384r1)236.7 ms235.9 ms
ECDH (secp521r1)477.2 ms476.1 ms
ECDH (brainpoolP256r1)178.3 ms178 ms
ECDH (brainpoolP384r1)469.2 ms469 ms
ECDH (brainpoolP512r1)976.6 ms976.3 ms
ECDH (SM2)97.2 ms96.9 ms
ECDH (X25519)15.9 ms15.9 ms
ECDH (X448)74.2 ms74.1 ms