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
SAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Encryption (Software) |
Decryption (Software) |
Encryption (Hardware) |
Decryption (Hardware) |
---|---|---|---|---|
3DES-CBC | 0.214 MB/s | 0.216 MB/s | - | - |
3DES-CTR | 0.201 MB/s | 0.202 MB/s | - | - |
AES128-CBC | 1.235 MB/s | 1.182 MB/s | 22.026 MB/s | 22.026 MB/s |
AES192-CBC | 1.096 MB/s | 1.061 MB/s | 21.186 MB/s | 21.186 MB/s |
AES256-CBC | 0.985 MB/s | 0.957 MB/s | 20.408 MB/s | 20.408 MB/s |
AES128-CTR | 1.326 MB/s | 1.326 MB/s | - | - |
AES192-CTR | 1.182 MB/s | 1.176 MB/s | - | - |
AES256-CTR | 1.057 MB/s | 1.056 MB/s | - | - |
SM4-CBC | 1.43 MB/s | 1.378 MB/s | - | - |
SM4-CTR | 1.375 MB/s | 1.374 MB/s | - | - |
AEAD Algorithms
SAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Encryption (Software) |
Decryption (Software) |
---|---|---|
AES128-GCM | 0.634 MB/s | 0.636 MB/s |
AES192-GCM | 0.592 MB/s | 0.592 MB/s |
AES256-GCM | 0.555 MB/s | 0.558 MB/s |
AES128-CCM | 0.669 MB/s | 0.679 MB/s |
AES192-CCM | 0.581 MB/s | 0.595 MB/s |
AES256-CCM | 0.521 MB/s | 0.534 MB/s |
SM4-GCM | 0.748 MB/s | 0.747 MB/s |
SM4-CCM | 0.763 MB/s | 0.762 MB/s |
Ascon-AEAD128 | 1.466 MB/s | 1.466 MB/s |
ChaCha20Poly1305 | 0.982 MB/s | 0.98 MB/s |
Hash Algorithms
SAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Speed (Software) |
---|---|
MD5 | 4.488 MB/s |
SHA-1 | 1.55 MB/s |
SHA-224 | 1.514 MB/s |
SHA-256 | 1.514 MB/s |
SHA-384 | 0.71 MB/s |
SHA-512 | 0.711 MB/s |
SHA3-224 | 0.335 MB/s |
SHA3-256 | 0.317 MB/s |
SHA3-384 | 0.244 MB/s |
SHA3-512 | 0.169 MB/s |
SM3 | 1.31 MB/s |
Ascon-Hash256 | 0.569 MB/s |
Signature Algorithms
SAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Generation (Software) |
Verification (Software) |
---|---|---|
RSA (1024 bits) | 168.6 ms | 30.6 ms |
RSA (2048 bits) | 872.9 ms | 111.7 ms |
RSA (3072 bits) | 2469.6 ms | 239.4 ms |
RSA (4096 bits) | 5331.1 ms | 422.2 ms |
DSA (1024 bits) | 95.5 ms | 199.6 ms |
DSA (2048 bits) | 435.6 ms | 922.2 ms |
EC Signature Algorithms
SAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Generation (Software) |
Verification (Software) |
---|---|---|
ECDSA (secp256r1) | 107.8 ms | 97 ms |
ECDSA (secp384r1) | 266.2 ms | 239.2 ms |
ECDSA (secp521r1) | 550.3 ms | 481.1 ms |
ECDSA (brainpoolP256r1) | 191.1 ms | 189.3 ms |
ECDSA (brainpoolP384r1) | 504.2 ms | 499.9 ms |
ECDSA (brainpoolP512r1) | 1050.5 ms | 1058.6 ms |
SM2 | 97.3 ms | 97.3 ms |
EdDSA (Ed25519) | 29.1 ms | 25.5 ms |
EdDSA (Ed448) | 142.9 ms | 125.9 ms |
Key Exchange Algorithms
SAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) |
Shared Secret Computation (Software) |
---|---|---|
Diffie-Hellman (1024 bits) | 334.5 ms | 334.5 ms |
Diffie-Hellman (2048 bits) | 2287.3 ms | 2287.3 ms |
EC Key Exchange Algorithms
SAM4E @ 120 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) |
Shared Secret Computation (Software) |
---|---|---|
ECDH (secp256r1) | 96.6 ms | 96.2 ms |
ECDH (secp384r1) | 236.7 ms | 235.9 ms |
ECDH (secp521r1) | 477.2 ms | 476.1 ms |
ECDH (brainpoolP256r1) | 178.3 ms | 178 ms |
ECDH (brainpoolP384r1) | 469.2 ms | 469 ms |
ECDH (brainpoolP512r1) | 976.6 ms | 976.3 ms |
ECDH (SM2) | 97.2 ms | 96.9 ms |
ECDH (X25519) | 15.9 ms | 15.9 ms |
ECDH (X448) | 74.2 ms | 74.1 ms |