Crypto Benchmark on SAMA5D4 MCU
ARM Cortex-A5 @ 528 MHz
This benchmark conducted on ATSAMA5D4-XULT Evaluation Kit 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 SAMA5D4 microcontroller.
SAMA5D4 MCU also includes crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.
Cipher Algorithms
SAMA5D4 @ 528 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.4
- • Compiled using EWARM with optimization level 3
| Algorithm | Encryption (Software) |
Decryption (Software) |
Encryption (Hardware) |
Decryption (Hardware) |
|---|---|---|---|---|
| 3DES-CBC | 1.106 MB/s | 1.085 MB/s | 5.224 MB/s | 5.221 MB/s |
| 3DES-CTR | 1.118 MB/s | 1.117 MB/s | 2.571 MB/s | 2.571 MB/s |
| AES128-CBC | 5.015 MB/s | 4.948 MB/s | 10.224 MB/s | 10.214 MB/s |
| AES192-CBC | 4.304 MB/s | 4.299 MB/s | 10.204 MB/s | 10.204 MB/s |
| AES256-CBC | 3.797 MB/s | 3.77 MB/s | 10.193 MB/s | 10.183 MB/s |
| AES128-CTR | 4.897 MB/s | 4.897 MB/s | 10.193 MB/s | 10.183 MB/s |
| AES192-CTR | 4.221 MB/s | 4.221 MB/s | 10.183 MB/s | 10.183 MB/s |
| AES256-CTR | 3.734 MB/s | 3.732 MB/s | 10.162 MB/s | 10.162 MB/s |
| SM4-CBC | 5.221 MB/s | 5.104 MB/s | - | - |
| SM4-CTR | 5.055 MB/s | 5.055 MB/s | - | - |
| XTEA-CBC | 3.728 MB/s | 3.7 MB/s | 4.69 MB/s | 4.69 MB/s |
| XTEA-CTR | 3.742 MB/s | 3.741 MB/s | 2.501 MB/s | 2.501 MB/s |
AEAD Algorithms
SAMA5D4 @ 528 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.4
- • Compiled using EWARM with optimization level 3
| Algorithm | Encryption (Software) |
Decryption (Software) |
Encryption (Hardware) |
Decryption (Hardware) |
|---|---|---|---|---|
| AES128-GCM | 2.551 MB/s | 2.535 MB/s | 9.871 MB/s | 9.861 MB/s |
| AES192-GCM | 2.361 MB/s | 2.347 MB/s | 9.852 MB/s | 9.842 MB/s |
| AES256-GCM | 2.198 MB/s | 2.186 MB/s | 9.842 MB/s | 9.832 MB/s |
| AES128-CCM | 2.493 MB/s | 2.52 MB/s | - | - |
| AES192-CCM | 2.158 MB/s | 2.173 MB/s | - | - |
| AES256-CCM | 1.895 MB/s | 1.908 MB/s | - | - |
| SM4-GCM | 2.593 MB/s | 2.577 MB/s | - | - |
| SM4-CCM | 2.577 MB/s | 2.623 MB/s | - | - |
| Ascon-AEAD128 | 3.968 MB/s | 3.94 MB/s | - | - |
| ChaCha20Poly1305 | 3.909 MB/s | 3.906 MB/s | - | - |
Hash Algorithms
SAMA5D4 @ 528 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.4
- • Compiled using EWARM with optimization level 3
| Algorithm | Speed (Software) |
Speed (Hardware) |
|---|---|---|
| MD5 | 27.548 MB/s | - |
| SHA-1 | 7.072 MB/s | 22.883 MB/s |
| SHA-224 | 6.43 MB/s | 23.866 MB/s |
| SHA-256 | 6.426 MB/s | 23.866 MB/s |
| SHA-384 | 2.897 MB/s | 27.322 MB/s |
| SHA-512 | 2.898 MB/s | 27.397 MB/s |
| SHA3-224 | 2.491 MB/s | - |
| SHA3-256 | 2.357 MB/s | - |
| SHA3-384 | 1.814 MB/s | - |
| SHA3-512 | 1.265 MB/s | - |
| SM3 | 5.107 MB/s | - |
| Ascon-Hash256 | 1.507 MB/s | - |
Signature Algorithms
SAMA5D4 @ 528 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.4
- • Compiled using EWARM with optimization level 3
| Algorithm | Generation (Software) |
Verification (Software) |
Generation (Hardware) |
Verification (Hardware) |
|---|---|---|---|---|
| RSA (1024 bits) | 37 ms | 6.8 ms | 12.4 ms | 0.8 ms |
| RSA (2048 bits) | 194.6 ms | 25.1 ms | 52.7 ms | 2.4 ms |
| RSA (3072 bits) | 548.6 ms | 54.1 ms | 149.6 ms | 4.8 ms |
| RSA (4096 bits) | 1183.4 ms | 95.6 ms | 330.8 ms | 8.1 ms |
| DSA (1024 bits) | 21.2 ms | 44 ms | 8.1 ms | 18.5 ms |
| DSA (2048 bits) | 96.4 ms | 203.3 ms | 32.7 ms | 78.4 ms |
| DSA (3072 bits) | 206.2 ms | 438.2 ms | 68.2 ms | 167.6 ms |
EC Signature Algorithms
SAMA5D4 @ 528 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.4
- • Compiled using EWARM with optimization level 3
| Algorithm | Generation (Software) |
Verification (Software) |
|---|---|---|
| ECDSA (secp256r1) | 23.1 ms | 21.3 ms |
| ECDSA (secp384r1) | 58.6 ms | 53.3 ms |
| ECDSA (secp521r1) | 125.7 ms | 111.4 ms |
| ECDSA (brainpoolP256r1) | 44.2 ms | 44.4 ms |
| ECDSA (brainpoolP384r1) | 115.1 ms | 115.4 ms |
| ECDSA (brainpoolP512r1) | 236.1 ms | 240.7 ms |
| SM2 | 44.3 ms | 17.8 ms |
| EdDSA (Ed25519) | 7.9 ms | 7 ms |
| EdDSA (Ed448) | 33.9 ms | 30.4 ms |
Key Exchange Algorithms
SAMA5D4 @ 528 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.4
- • Compiled using EWARM with optimization level 3
| Algorithm | Public Key Generation (Software) |
Shared Secret Computation (Software) |
Public Key Generation (Hardware) |
Shared Secret Computation (Hardware) |
|---|---|---|---|---|
| Diffie-Hellman (1024 bits) | 74.9 ms | 74.9 ms | 25.1 ms | 25.1 ms |
| Diffie-Hellman (2048 bits) | 507.8 ms | 507.9 ms | 161.3 ms | 161.2 ms |
EC Key Exchange Algorithms
SAMA5D4 @ 528 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.4
- • Compiled using EWARM with optimization level 3
| Algorithm | Public Key Generation (Software) |
Shared Secret Computation (Software) |
|---|---|---|
| ECDH (secp256r1) | 20.4 ms | 20.3 ms |
| ECDH (secp384r1) | 51.5 ms | 51.4 ms |
| ECDH (secp521r1) | 108.5 ms | 108.4 ms |
| ECDH (brainpoolP256r1) | 41 ms | 41 ms |
| ECDH (brainpoolP384r1) | 106.7 ms | 106.6 ms |
| ECDH (brainpoolP512r1) | 218.8 ms | 218.7 ms |
| ECDH (SM2) | 20.4 ms | 20.3 ms |
| ECDH (X25519) | 4.4 ms | 4.3 ms |
| ECDH (X448) | 17.4 ms | 17.4 ms |