Crypto Benchmark on SAMA5D2 MCU
ARM Cortex-A5 @ 500 MHz
This benchmark conducted on ATSAMA5D2C-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 SAMA5D2 microcontroller.
SAMA5D2 MCU also includes crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.
Cipher Algorithms
SAMA5D2 @ 500 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using EWARM with optimization level 3
Algorithm | Encryption (Software) |
Decryption (Software) |
Encryption (Hardware) |
Decryption (Hardware) |
---|---|---|---|---|
3DES-CBC | 1.062 MB/s | 1.047 MB/s | 5.015 MB/s | 5.015 MB/s |
3DES-CTR | 1.053 MB/s | 1.053 MB/s | 2.315 MB/s | 2.315 MB/s |
AES128-CBC | 4.721 MB/s | 4.659 MB/s | 12.61 MB/s | 12.594 MB/s |
AES192-CBC | 4.053 MB/s | 4.05 MB/s | 12.422 MB/s | 12.406 MB/s |
AES256-CBC | 3.576 MB/s | 3.553 MB/s | 12.077 MB/s | 12.077 MB/s |
AES128-CTR | 4.614 MB/s | 4.612 MB/s | 12.562 MB/s | 12.562 MB/s |
AES192-CTR | 3.976 MB/s | 3.976 MB/s | 12.391 MB/s | 12.376 MB/s |
AES256-CTR | 3.517 MB/s | 3.517 MB/s | 12.048 MB/s | 12.033 MB/s |
SM4-CBC | 4.921 MB/s | 4.807 MB/s | - | - |
SM4-CTR | 4.761 MB/s | 4.761 MB/s | - | - |
XTEA-CBC | 3.576 MB/s | 3.483 MB/s | 4.464 MB/s | 4.464 MB/s |
XTEA-CTR | 3.526 MB/s | 3.524 MB/s | - | - |
AEAD Algorithms
SAMA5D2 @ 500 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using EWARM with optimization level 3
Algorithm | Encryption (Software) |
Decryption (Software) |
Encryption (Hardware) |
Decryption (Hardware) |
---|---|---|---|---|
AES128-GCM | 2.4 MB/s | 2.391 MB/s | 12.18 MB/s | 12.165 MB/s |
AES192-GCM | 2.222 MB/s | 2.214 MB/s | 12.019 MB/s | 12.004 MB/s |
AES256-GCM | 2.069 MB/s | 2.061 MB/s | 11.682 MB/s | 11.682 MB/s |
AES128-CCM | 2.335 MB/s | 2.381 MB/s | - | - |
AES192-CCM | 2.023 MB/s | 2.053 MB/s | - | - |
AES256-CCM | 1.778 MB/s | 1.802 MB/s | - | - |
SM4-GCM | 2.445 MB/s | 2.43 MB/s | - | - |
SM4-CCM | 2.434 MB/s | 2.48 MB/s | - | - |
Ascon-AEAD128 | 3.735 MB/s | 3.707 MB/s | - | - |
ChaCha20Poly1305 | 3.675 MB/s | 3.672 MB/s | - | - |
Hash Algorithms
SAMA5D2 @ 500 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using EWARM with optimization level 3
Algorithm | Speed (Software) |
Speed (Hardware) |
---|---|---|
MD5 | 25.906 MB/s | - |
SHA-1 | 6.657 MB/s | 23.696 MB/s |
SHA-224 | 6.053 MB/s | 24.33 MB/s |
SHA-256 | 6.049 MB/s | 24.39 MB/s |
SHA-384 | 2.729 MB/s | 25.839 MB/s |
SHA-512 | 2.729 MB/s | 25.839 MB/s |
SHA3-224 | 2.372 MB/s | - |
SHA3-256 | 2.244 MB/s | - |
SHA3-384 | 1.728 MB/s | - |
SHA3-512 | 1.204 MB/s | - |
SM3 | 4.83 MB/s | - |
Ascon-Hash256 | 1.419 MB/s | - |
Signature Algorithms
SAMA5D2 @ 500 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using EWARM with optimization level 3
Algorithm | Generation (Software) |
Verification (Software) |
---|---|---|
RSA (1024 bits) | 39.2 ms | 7.2 ms |
RSA (2048 bits) | 206.3 ms | 26.7 ms |
RSA (3072 bits) | 582.4 ms | 57.3 ms |
RSA (4096 bits) | 1255.9 ms | 101.6 ms |
DSA (1024 bits) | 22.5 ms | 46.7 ms |
DSA (2048 bits) | 102.2 ms | 215.9 ms |
EC Signature Algorithms
SAMA5D2 @ 500 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using EWARM with optimization level 3
Algorithm | Generation (Software) |
Verification (Software) |
---|---|---|
ECDSA (secp256r1) | 24.6 ms | 22.3 ms |
ECDSA (secp384r1) | 62.5 ms | 56.9 ms |
ECDSA (secp521r1) | 134.1 ms | 118.9 ms |
ECDSA (brainpoolP256r1) | 47.2 ms | 47.5 ms |
ECDSA (brainpoolP384r1) | 122.6 ms | 123 ms |
ECDSA (brainpoolP512r1) | 251.3 ms | 256.1 ms |
SM2 | 21.7 ms | 21.7 ms |
EdDSA (Ed25519) | 8.4 ms | 7.7 ms |
EdDSA (Ed448) | 36 ms | 32.2 ms |
Key Exchange Algorithms
SAMA5D2 @ 500 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using EWARM with optimization level 3
Algorithm | Public Key Generation (Software) |
Shared Secret Computation (Software) |
---|---|---|
Diffie-Hellman (1024 bits) | 79.5 ms | 79.5 ms |
Diffie-Hellman (2048 bits) | 539.1 ms | 539.2 ms |
EC Key Exchange Algorithms
SAMA5D2 @ 500 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using EWARM with optimization level 3
Algorithm | Public Key Generation (Software) |
Shared Secret Computation (Software) |
---|---|---|
ECDH (secp256r1) | 21.8 ms | 21.6 ms |
ECDH (secp384r1) | 54.9 ms | 54.9 ms |
ECDH (secp521r1) | 115.7 ms | 115.6 ms |
ECDH (brainpoolP256r1) | 43.8 ms | 43.6 ms |
ECDH (brainpoolP384r1) | 113.6 ms | 113.5 ms |
ECDH (brainpoolP512r1) | 232.9 ms | 232.7 ms |
ECDH (SM2) | 21.8 ms | 21.7 ms |
ECDH (X25519) | 4.6 ms | 4.6 ms |
ECDH (X448) | 18.3 ms | 18.3 ms |