Crypto Benchmark on SAM4C MCU
ARM Cortex-M4F @ 120 MHz
This benchmark conducted on SAM4C32-EK Evaluation Kit will help you in qualifying performance of CycloneCRYPTO (Crypto Library), CycloneSSL (SSL/TLS Library) and CycloneSSH (SSH Library) running on Microchip SAM4C MCU. Note: Microchip ATSAM4C includes Symmetric Crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.
Cipher Algorithms
SAM4C @ 120 MHz
Benchmark generated with CycloneCRYPTO 2.1.0
Compiled using ARM CC 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.143 MB/s | 0.141 MB/s | - | - | - | - |
AES-128 | 0.752 MB/s | 0.725 MB/s | 0.401 MB/s | 0.401 MB/s | 0.479 MB/s | 0.477 MB/s |
AES-192 | 0.649 MB/s | 0.63 MB/s | 0.34 MB/s | 0.34 MB/s | 0.431 MB/s | 0.43 MB/s |
AES-256 | 0.572 MB/s | 0.556 MB/s | 0.298 MB/s | 0.298 MB/s | 0.399 MB/s | 0.397 MB/s |
Algorithm | CBC Encrypt (Hardware) | CBC Decrypt (Hardware) | CCM Encrypt (Hardware) | CCM Decrypt (Hardware) | GCM Encrypt (Hardware) | GCM Decrypt (Hardware) |
---|---|---|---|---|---|---|
3DES | - | - | - | - | - | - |
AES-128 | 22.075 MB/s | 22.075 MB/s | - | - | 20.618 MB/s | 20.491 MB/s |
AES-192 | 21.186 MB/s | 21.141 MB/s | - | - | 19.762 MB/s | 19.685 MB/s |
AES-256 | 20.325 MB/s | 20.283 MB/s | - | - | 19.083 MB/s | 18.975 MB/s |
Hash Algorithms
SAM4C @ 120 MHz
Benchmark generated with CycloneCRYPTO 2.1.0
Compiled using ARM CC with optimization level 3
Algorithm | Speed (Software) | Speed (Hardware) |
---|---|---|
MD5 | 5.787 MB/s | - |
SHA-1 | 1 MB/s | 56.818 MB/s |
SHA-224 | 1.205 MB/s | 62.5 MB/s |
SHA-256 | 1.205 MB/s | 62.5 MB/s |
SHA-384 | 0.651 MB/s | - |
SHA-512 | 0.651 MB/s | - |
SHA3-224 | 0.44 MB/s | - |
SHA3-256 | 0.416 MB/s | - |
SHA3-384 | 0.319 MB/s | - |
SHA3-512 | 0.221 MB/s | - |
Signature Algorithms
SAM4C @ 120 MHz
Benchmark generated with CycloneCRYPTO 2.1.0
Compiled using ARM CC with optimization level 3
Signature | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
RSA (1024 bits) | 191.3 ms | 35.7 ms |
RSA (2048 bits) | 972.5 ms | 129.8 ms |
RSA (3072 bits) | 2732 ms | 277.7 ms |
RSA (4096 bits) | 5874 ms | 488.9 ms |
DSA (1024 bits) | 111.9 ms | 233.7 ms |
DSA (2048 bits) | 496.7 ms | 1056.4 ms |
EC Signature Algorithms
SAM4C @ 120 MHz
Benchmark generated with CycloneCRYPTO 2.1.0
Compiled using ARM CC with optimization level 3
Signature | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
ECDSA (P-256) | 414 ms | 519.6 ms |
ECDSA (P-384) | 745.1 ms | 925.4 ms |
ECDSA (P-521) | 795.8 ms | 945.2 ms |
EdDSA (Ed25519) | 94.1 ms | 184.7 ms |
EdDSA (Ed448) | 402.3 ms | 794 ms |
Key Exchange Algorithms
SAM4C @ 120 MHz
Benchmark generated with CycloneCRYPTO 2.1.0
Compiled using ARM CC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
Diffie-Hellman (1024 bits) | 375.1 ms | 375.4 ms |
Diffie-Hellman (2048 bits) | 2529.3 ms | 2529.4 ms |
EC Key Exchange Algorithms
SAM4C @ 120 MHz
Benchmark generated with CycloneCRYPTO 2.1.0
Compiled using ARM CC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
ECDH (P-256) | 397.9 ms | 396.7 ms |
ECDH (P-384) | 704.7 ms | 716.3 ms |
ECDH (P-521) | 777.3 ms | 774.7 ms |
ECDH (X25519) | 51.4 ms | 51.5 ms |
ECDH (X448) | 201.5 ms | 201.5 ms |