Crypto Benchmark on STM32WL MCU
ARM Cortex-M4 @ 48 MHz
This benchmark conducted on STM32 Nucleo-64 development board with STM32WL55JC 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 STMicroelectronics STM32WL microcontroller.
STM32WL MCU also includes crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.
Cipher Algorithms
STM32WL55 @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC 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.097 MB/s | 0.095 MB/s | - | - | - | - |
AES-128 | 0.492 MB/s | 0.512 MB/s | 0.266 MB/s | 0.265 MB/s | 0.292 MB/s | 0.292 MB/s |
AES-192 | 0.429 MB/s | 0.448 MB/s | 0.228 MB/s | 0.227 MB/s | 0.267 MB/s | 0.267 MB/s |
AES-256 | 0.38 MB/s | 0.398 MB/s | 0.2 MB/s | 0.199 MB/s | 0.248 MB/s | 0.248 MB/s |
Algorithm | CBC Encrypt (Hardware) | CBC Decrypt (Hardware) | CCM Encrypt (Hardware) | CCM Decrypt (Hardware) | GCM Encrypt (Hardware) | GCM Decrypt (Hardware) |
---|---|---|---|---|---|---|
AES-128 | 7.836 MB/s | 7.751 MB/s | 4.434 MB/s | 4.403 MB/s | 7.385 MB/s | 7.473 MB/s |
AES-256 | 6.41 MB/s | 6.353 MB/s | 3.384 MB/s | 3.348 MB/s | 6.101 MB/s | 6.138 MB/s |
Hash Algorithms
STM32WL55 @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Speed (Software) | Speed (Hardware) |
---|---|---|
MD5 | 2.482 MB/s | - |
SHA-1 | 0.686 MB/s | - |
SHA-224 | 0.667 MB/s | - |
SHA-256 | 0.666 MB/s | - |
SHA-384 | 0.338 MB/s | - |
SHA-512 | 0.338 MB/s | - |
SHA3-224 | 0.179 MB/s | - |
SHA3-256 | 0.169 MB/s | - |
SHA3-384 | 0.129 MB/s | - |
SHA3-512 | 0.09 MB/s | - |
Signature Algorithms
STM32WL55 @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
RSA (1024 bits) | 345.5 ms | 65.2 ms |
RSA (2048 bits) | 1791 ms | 240.3 ms |
RSA (3072 bits) | 5081.2 ms | 516.6 ms |
DSA (1024 bits) | 203.3 ms | 423.6 ms |
DSA (2048 bits) | 920.2 ms | 1949.8 ms |
Algorithm | Signature Generation (Hardware) | Signature Verification (Hardware) |
---|---|---|
RSA (1024 bits) | 81.4 ms | 6.9 ms |
RSA (2048 bits) | 509 ms | 18.8 ms |
RSA (3072 bits) | 1581.3 ms | 46.9 ms |
EC Signature Algorithms
STM32WL55 @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Signature Generation (Software) | Signature Verification (Software) |
---|---|---|
ECDSA (P-256) | 722.5 ms | 906.7 ms |
ECDSA (P-384) | 1314.3 ms | 1630.3 ms |
ECDSA (P-521) | 1427.9 ms | 1697.3 ms |
EdDSA (Ed25519) | 173 ms | 342.2 ms |
EdDSA (Ed448) | 749.7 ms | 1487.9 ms |
Algorithm | Signature Generation (Hardware) | Signature Verification (Hardware) |
---|---|---|
ECDSA (P-256) | 106 ms | 220.2 ms |
ECDSA (P-384) | 304.3 ms | 615.6 ms |
ECDSA (P-521) | 728.9 ms | 1459.3 ms |
EdDSA (Ed25519) | 130.7 ms | 257.5 ms |
EdDSA (Ed448) | 476.4 ms | 946.5 ms |
Key Exchange Algorithms
STM32WL55 @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
Diffie-Hellman (1024 bits) | 693.5 ms | 694.1 ms |
Diffie-Hellman (2048 bits) | 4748.7 ms | 4749.4 ms |
EC Key Exchange Algorithms
STM32WL55 @ 48 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Public Key Generation (Software) | Shared Secret Computation (Software) |
---|---|---|
ECDH (P-256) | 694.4 ms | 692.3 ms |
ECDH (P-384) | 1242.2 ms | 1261.8 ms |
ECDH (P-521) | 1394.8 ms | 1390.3 ms |
ECDH (X25519) | 96.5 ms | 96.4 ms |
ECDH (X448) | 384.4 ms | 384.3 ms |
Algorithm | Public Key Generation (Hardware) | Shared Secret Computation (Hardware) |
---|---|---|
ECDH (P-256) | 121.7 ms | 121.7 ms |
ECDH (P-384) | 334.5 ms | 334.3 ms |
ECDH (P-521) | 777.9 ms | 777.9 ms |
ECDH (X25519) | 73.3 ms | 73.4 ms |
ECDH (X448) | 250.9 ms | 250.8 ms |