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
Algorithm | CBC Encrypt (Software) | CBC Decrypt (Software) | CCM Encrypt (Software) | CCM Decrypt (Software) | GCM Encrypt (Software) | GCM Decrypt (Software) |
---|---|---|---|---|---|---|
3DES | 0.078 MB/s | 0.077 MB/s | - | - | - | - |
AES-128 | 0.372 MB/s | 0.361 MB/s | 0.2 MB/s | 0.2 MB/s | 0.208 MB/s | 0.207 MB/s |
AES-192 | 0.326 MB/s | 0.317 MB/s | 0.173 MB/s | 0.173 MB/s | 0.192 MB/s | 0.192 MB/s |
AES-256 | 0.289 MB/s | 0.283 MB/s | 0.152 MB/s | 0.152 MB/s | 0.179 MB/s | 0.178 MB/s |
Algorithm | CBC Encrypt (Hardware) | CBC Decrypt (Hardware) | CCM Encrypt (Hardware) | CCM Decrypt (Hardware) | GCM Encrypt (Hardware) | GCM Decrypt (Hardware) |
---|---|---|---|---|---|---|
AES-128 | 9.124 MB/s | 9.115 MB/s | - | - | - | - |
Hash Algorithms
ATSAM4L @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Speed (Software) | Speed (Hardware) |
---|---|---|
MD5 | 2.191 MB/s | - |
SHA-1 | 0.471 MB/s | - |
SHA-224 | 0.446 MB/s | - |
SHA-256 | 0.446 MB/s | - |
SHA-384 | 0.226 MB/s | - |
SHA-512 | 0.226 MB/s | - |
SHA3-224 | 0.153 MB/s | - |
SHA3-256 | 0.145 MB/s | - |
SHA3-384 | 0.111 MB/s | - |
SHA3-512 | 0.077 MB/s | - |
Signature Algorithms
ATSAM4L @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
RSA (1024 bits) | 503.5 ms | 96.9 ms |
RSA (2048 bits) | 2685 ms | 361.1 ms |
RSA (3072 bits) | 7703 ms | 779.6 ms |
DSA (1024 bits) | 300.2 ms | 630.1 ms |
DSA (2048 bits) | 1391.2 ms | 2955.5 ms |
EC Signature Algorithms
ATSAM4L @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
ECDSA (P-256) | 941.3 ms | 1181.7 ms |
ECDSA (P-384) | 1740.6 ms | 2160.5 ms |
ECDSA (P-521) | 1946.7 ms | 2314.6 ms |
EdDSA (Ed25519) | 245.7 ms | 484.5 ms |
EdDSA (Ed448) | 1090.4 ms | 2162.9 ms |
Key Exchange Algorithms
ATSAM4L @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
Diffie-Hellman (1024 bits) | 1040.1 ms | 1040.9 ms |
Diffie-Hellman (2048 bits) | 7255 ms | 7255.8 ms |
EC Key Exchange Algorithms
ATSAM4L @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
ECDH (P-256) | 903.9 ms | 901.2 ms |
ECDH (P-384) | 1644.9 ms | 1671 ms |
ECDH (P-521) | 1901.7 ms | 1895.5 ms |
ECDH (X25519) | 136.4 ms | 136.5 ms |
ECDH (X448) | 553.5 ms | 553.5 ms |