Crypto Benchmark on S32K1 MCU
ARM Cortex-M4 @ 80 MHz
This benchmark conducted on S32K148-EVB-Q176 evaluation board with S32K148 MCU 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 NXP S32K1 microcontroller.
S32K1 MCU also includes crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.
Cipher Algorithms
S32K148 @ 80 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.196 MB/s | 0.2 MB/s | - | - |
3DES-CTR | 0.204 MB/s | 0.204 MB/s | - | - |
AES128-CBC | 0.961 MB/s | 0.942 MB/s | 3.08 MB/s | 3.071 MB/s |
AES192-CBC | 0.85 MB/s | 0.84 MB/s | - | - |
AES256-CBC | 0.762 MB/s | 0.756 MB/s | - | - |
AES128-CTR | 0.922 MB/s | 0.922 MB/s | - | - |
AES192-CTR | 0.82 MB/s | 0.82 MB/s | - | - |
AES256-CTR | 0.738 MB/s | 0.738 MB/s | - | - |
SM4-CBC | 0.957 MB/s | 0.925 MB/s | - | - |
SM4-CTR | 0.907 MB/s | 0.907 MB/s | - | - |
AEAD Algorithms
S32K148 @ 80 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Encryption (Software) |
Decryption (Software) |
---|---|---|
AES128-GCM | 0.483 MB/s | 0.498 MB/s |
AES192-GCM | 0.453 MB/s | 0.466 MB/s |
AES256-GCM | 0.427 MB/s | 0.437 MB/s |
AES128-CCM | 0.485 MB/s | 0.501 MB/s |
AES192-CCM | 0.427 MB/s | 0.439 MB/s |
AES256-CCM | 0.381 MB/s | 0.391 MB/s |
SM4-GCM | 0.488 MB/s | 0.487 MB/s |
SM4-CCM | 0.493 MB/s | 0.493 MB/s |
Ascon-AEAD128 | 0.958 MB/s | 0.965 MB/s |
ChaCha20Poly1305 | 0.678 MB/s | 0.673 MB/s |
Hash Algorithms
S32K148 @ 80 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Speed (Software) |
---|---|
MD5 | 4.57 MB/s |
SHA-1 | 1.083 MB/s |
SHA-224 | 1.052 MB/s |
SHA-256 | 1.052 MB/s |
SHA-384 | 0.511 MB/s |
SHA-512 | 0.511 MB/s |
SHA3-224 | 0.307 MB/s |
SHA3-256 | 0.29 MB/s |
SHA3-384 | 0.223 MB/s |
SHA3-512 | 0.155 MB/s |
SM3 | 0.91 MB/s |
Ascon-Hash256 | 0.38 MB/s |
Signature Algorithms
S32K148 @ 80 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Generation (Software) |
Verification (Software) |
---|---|---|
RSA (1024 bits) | 220.5 ms | 40.7 ms |
RSA (2048 bits) | 1127.7 ms | 147.7 ms |
RSA (3072 bits) | 3166.1 ms | 317.3 ms |
RSA (4096 bits) | 6803.1 ms | 557.7 ms |
DSA (1024 bits) | 124.4 ms | 260.5 ms |
DSA (2048 bits) | 561.2 ms | 1191.2 ms |
EC Signature Algorithms
S32K148 @ 80 MHz
- • Benchmark generated with CycloneCRYPTO 2.5.0
- • Compiled using ARMCC with optimization level 3
Algorithm | Generation (Software) |
Verification (Software) |
---|---|---|
ECDSA (secp256r1) | 146.6 ms | 132.1 ms |
ECDSA (secp384r1) | 366.4 ms | 330.5 ms |
ECDSA (secp521r1) | 770.6 ms | 677.3 ms |
ECDSA (brainpoolP256r1) | 268.2 ms | 266.3 ms |
ECDSA (brainpoolP384r1) | 707.7 ms | 703.3 ms |
ECDSA (brainpoolP512r1) | 1474.5 ms | 1489.8 ms |
SM2 | 136.9 ms | 136.9 ms |
EdDSA (Ed25519) | 37.7 ms | 33.3 ms |
EdDSA (Ed448) | 183.7 ms | 163.8 ms |
Key Exchange Algorithms
S32K148 @ 80 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) | 428 ms | 428.2 ms |
Diffie-Hellman (2048 bits) | 2898.9 ms | 2900.5 ms |
EC Key Exchange Algorithms
S32K148 @ 80 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) | 130.5 ms | 131.2 ms |
ECDH (secp384r1) | 323.7 ms | 323.3 ms |
ECDH (secp521r1) | 665.6 ms | 664.7 ms |
ECDH (brainpoolP256r1) | 249.6 ms | 249.2 ms |
ECDH (brainpoolP384r1) | 657.4 ms | 656.9 ms |
ECDH (brainpoolP512r1) | 1368 ms | 1367.3 ms |
ECDH (SM2) | 136.8 ms | 136.4 ms |
ECDH (X25519) | 19.8 ms | 19.9 ms |
ECDH (X448) | 94.5 ms | 94.6 ms |