Crypto Benchmark on STM32WB MCU
ARM Cortex-M4 @ 64 MHz
This benchmark conducted on STM32 Nucleo-64 development board with STM32WB55 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 STM32WB microcontroller.
STM32WB MCU also includes crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.
Cipher Algorithms
STM32WB55 @ 64 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.116 MB/s | 0.114 MB/s | - | - | - | - |
AES-128 | 0.602 MB/s | 0.606 MB/s | 0.322 MB/s | 0.32 MB/s | 0.37 MB/s | 0.373 MB/s |
AES-192 | 0.522 MB/s | 0.53 MB/s | 0.274 MB/s | 0.273 MB/s | 0.336 MB/s | 0.34 MB/s |
AES-256 | 0.461 MB/s | 0.471 MB/s | 0.24 MB/s | 0.239 MB/s | 0.311 MB/s | 0.314 MB/s |
Algorithm | CBC Encrypt (Hardware) | CBC Decrypt (Hardware) | CCM Encrypt (Hardware) | CCM Decrypt (Hardware) | GCM Encrypt (Hardware) | GCM Decrypt (Hardware) |
---|---|---|---|---|---|---|
AES-128 | 10.928 MB/s | 10.764 MB/s | 6.053 MB/s | 6.027 MB/s | 10.162 MB/s | 10.04 MB/s |
AES-256 | 8.896 MB/s | 8.756 MB/s | 4.595 MB/s | 4.572 MB/s | 8.312 MB/s | 8.271 MB/s |
Hash Algorithms
STM32WB55 @ 64 MHz
- • Benchmark generated with CycloneCRYPTO 2.1.6
- • Compiled using ARMCC with optimization level 3
Algorithm | Speed (Software) | Speed (Hardware) |
---|---|---|
MD5 | 3.317 MB/s | - |
SHA-1 | 0.916 MB/s | - |
SHA-224 | 0.891 MB/s | - |
SHA-256 | 0.891 MB/s | - |
SHA-384 | 0.456 MB/s | - |
SHA-512 | 0.456 MB/s | - |
SHA3-224 | 0.249 MB/s | - |
SHA3-256 | 0.236 MB/s | - |
SHA3-384 | 0.181 MB/s | - |
SHA3-512 | 0.125 MB/s | - |
Signature Algorithms
STM32WB55 @ 64 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) | 258 ms | 48.7 ms |
RSA (2048 bits) | 1337.4 ms | 179.7 ms |
RSA (3072 bits) | 3796.4 ms | 386.3 ms |
DSA (1024 bits) | 152 ms | 316.3 ms |
DSA (2048 bits) | 687.6 ms | 1457 ms |
Algorithm | Signature Generation (Hardware) | Signature Verification (Hardware) |
---|---|---|
RSA (1024 bits) | 61 ms | 5.2 ms |
RSA (2048 bits) | 381.6 ms | 14.1 ms |
RSA (3072 bits) | 1186.1 ms | 35.1 ms |
EC Signature Algorithms
STM32WB55 @ 64 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) | 541.4 ms | 679.9 ms |
ECDSA (P-384) | 985.7 ms | 1222.2 ms |
ECDSA (P-521) | 1068.8 ms | 1270.1 ms |
EdDSA (Ed25519) | 128.7 ms | 254.2 ms |
EdDSA (Ed448) | 558.4 ms | 1108.2 ms |
Algorithm | Signature Generation (Hardware) | Signature Verification (Hardware) |
---|---|---|
ECDSA (P-256) | 79.4 ms | 165.2 ms |
ECDSA (P-384) | 228.3 ms | 461.8 ms |
ECDSA (P-521) | 546.7 ms | 1094.5 ms |
EdDSA (Ed25519) | 97.1 ms | 191.7 ms |
EdDSA (Ed448) | 352.4 ms | 699.4 ms |
Key Exchange Algorithms
STM32WB55 @ 64 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) | 517.8 ms | 518.2 ms |
Diffie-Hellman (2048 bits) | 3548.5 ms | 3548.8 ms |
EC Key Exchange Algorithms
STM32WB55 @ 64 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) | 520.6 ms | 519 ms |
ECDH (P-384) | 931.3 ms | 945.7 ms |
ECDH (P-521) | 1043.7 ms | 1040.3 ms |
ECDH (X25519) | 71.6 ms | 71.6 ms |
ECDH (X448) | 285.1 ms | 285 ms |
Algorithm | Public Key Generation (Hardware) | Shared Secret Computation (Hardware) |
---|---|---|
ECDH (P-256) | 91.3 ms | 91.2 ms |
ECDH (P-384) | 250.6 ms | 250.6 ms |
ECDH (P-521) | 582.9 ms | 582.9 ms |
ECDH (X25519) | 54.5 ms | 54.5 ms |
ECDH (X448) | 184.4 ms | 184.4 ms |