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
ATSAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.0
- • Compiled using ARMCC with optimization level 3
Algorithm | CBC Encrypt (Software) | CBC Decrypt (Software) | CCM Encrypt (Software) | CCM Decrypt (Software) | GCM Encrypt (Software) | GCM Decrypt (Software) |
---|---|---|---|---|---|---|
3DES | 0.221 MB/s | 0.217 MB/s | - | - | - | - |
AES-128 | 1.194 MB/s | 1.243 MB/s | 0.657 MB/s | 0.677 MB/s | 0.637 MB/s | 0.63 MB/s |
AES-192 | 1.067 MB/s | 1.116 MB/s | 0.58 MB/s | 0.597 MB/s | 0.587 MB/s | 0.585 MB/s |
AES-256 | 0.968 MB/s | 1.012 MB/s | 0.519 MB/s | 0.532 MB/s | 0.549 MB/s | 0.55 MB/s |
Algorithm | CBC Encrypt (Hardware) | CBC Decrypt (Hardware) | CCM Encrypt (Hardware) | CCM Decrypt (Hardware) | GCM Encrypt (Hardware) | GCM Decrypt (Hardware) |
---|---|---|---|---|---|---|
AES-128 | 22.026 MB/s | 22.026 MB/s | - | - | - | - |
AES-192 | 21.231 MB/s | 21.186 MB/s | - | - | - | - |
AES-256 | 20.449 MB/s | 20.408 MB/s | - | - | - | - |
Hash Algorithms
ATSAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Speed (Software) | Speed (Hardware) |
---|---|---|
MD5 | 5.858 MB/s | - |
SHA-1 | 1.608 MB/s | - |
SHA-224 | 1.551 MB/s | - |
SHA-256 | 1.551 MB/s | - |
SHA-384 | 0.762 MB/s | - |
SHA-512 | 0.762 MB/s | - |
SHA3-224 | 0.34 MB/s | - |
SHA3-256 | 0.321 MB/s | - |
SHA3-384 | 0.246 MB/s | - |
SHA3-512 | 0.171 MB/s | - |
Signature Algorithms
ATSAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
RSA (1024 bits) | 158.7 ms | 29.4 ms |
RSA (2048 bits) | 836.3 ms | 109 ms |
RSA (3072 bits) | 2390.9 ms | 234.6 ms |
RSA (4096 bits) | 5193.7 ms | 414.7 ms |
DSA (1024 bits) | 94 ms | 195.3 ms |
DSA (2048 bits) | 429.8 ms | 908.4 ms |
EC Signature Algorithms
ATSAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
ECDSA (P-256) | 330.8 ms | 415.6 ms |
ECDSA (P-384) | 603.8 ms | 749.3 ms |
ECDSA (P-521) | 666.4 ms | 792.5 ms |
EdDSA (Ed25519) | 73.6 ms | 145.4 ms |
EdDSA (Ed448) | 318.4 ms | 631 ms |
Key Exchange Algorithms
ATSAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
Diffie-Hellman (1024 bits) | 327.1 ms | 327.4 ms |
Diffie-Hellman (2048 bits) | 2259.1 ms | 2259.5 ms |
EC Key Exchange Algorithms
ATSAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
ECDH (P-256) | 318 ms | 317 ms |
ECDH (P-384) | 570.3 ms | 579 ms |
ECDH (P-521) | 651.1 ms | 649 ms |
ECDH (X25519) | 41.1 ms | 41.1 ms |
ECDH (X448) | 162.2 ms | 162.2 ms |