Crypto Benchmark on Kinetis K64 MCU
ARM Cortex-M4 @ 120 MHz

This benchmark conducted on FRDM-K64F Freedom Development Platform for Kinetis® K64, K63, and K24 MCUs 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 Kinetis K64 microcontroller.

Kinetis K64 MCU also includes crypto hardware acceleration. In the following comparison charts, both hardware and software performance are presented in the relevant sections.

Cipher Algorithms

K64F12 @ 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-CBC0.154 MB/s0.157 MB/s1.274 MB/s1.19 MB/s
3DES-CTR0.155 MB/s0.155 MB/s1.329 MB/s1.329 MB/s
AES128-CBC0.746 MB/s0.786 MB/s2.319 MB/s2.165 MB/s
AES192-CBC0.64 MB/s0.678 MB/s2.207 MB/s2.067 MB/s
AES256-CBC0.56 MB/s0.596 MB/s2.117 MB/s1.988 MB/s
AES128-CTR0.775 MB/s0.766 MB/s2.247 MB/s2.245 MB/s
AES192-CTR0.661 MB/s0.654 MB/s2.141 MB/s2.139 MB/s
AES256-CTR0.578 MB/s0.571 MB/s2.057 MB/s2.055 MB/s
SM4-CBC0.91 MB/s0.841 MB/s--
SM4-CTR0.905 MB/s0.905 MB/s--

AEAD Algorithms

K64F12 @ 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)
AES128-GCM0.541 MB/s0.54 MB/s0.985 MB/s0.985 MB/s
AES192-GCM0.479 MB/s0.478 MB/s0.964 MB/s0.964 MB/s
AES256-GCM0.437 MB/s0.436 MB/s0.946 MB/s0.946 MB/s
AES128-CCM0.394 MB/s0.394 MB/s1.34 MB/s1.348 MB/s
AES192-CCM0.332 MB/s0.332 MB/s1.263 MB/s1.271 MB/s
AES256-CCM0.289 MB/s0.29 MB/s1.203 MB/s1.21 MB/s
SM4-GCM0.591 MB/s0.591 MB/s--
SM4-CCM0.471 MB/s0.474 MB/s--
Ascon-AEAD1281.262 MB/s1.277 MB/s--
ChaCha20Poly13051.032 MB/s1.031 MB/s--

Hash Algorithms

K64F12 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Speed
(Software)
Speed
(Hardware)
MD55.393 MB/s8.097 MB/s
SHA-11.526 MB/s4.11 MB/s
SHA-2241.338 MB/s2.675 MB/s
SHA-2561.338 MB/s2.677 MB/s
SHA-3840.653 MB/s-
SHA-5120.653 MB/s-
SHA3-2240.516 MB/s-
SHA3-2560.488 MB/s-
SHA3-3840.376 MB/s-
SHA3-5120.262 MB/s-
SM31.089 MB/s-
Ascon-Hash2560.476 MB/s-

Signature Algorithms

K64F12 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
RSA (1024 bits)160 ms28.3 ms
RSA (2048 bits)793.2 ms101 ms
RSA (3072 bits)2195.9 ms214.2 ms
DSA (1024 bits)88.8 ms184.3 ms
DSA (2048 bits)388.4 ms820.1 ms

EC Signature Algorithms

K64F12 @ 120 MHz

  • Benchmark generated with CycloneCRYPTO 2.5.0
  • Compiled using ARMCC with optimization level 3
Algorithm Generation
(Software)
Verification
(Software)
ECDSA (secp256r1)104.6 ms93.9 ms
ECDSA (secp384r1)249 ms224.7 ms
ECDSA (secp521r1)520.9 ms456.4 ms
ECDSA (brainpoolP256r1)186.8 ms185.1 ms
ECDSA (brainpoolP384r1)483.6 ms480 ms
ECDSA (brainpoolP512r1)997.4 ms1006.9 ms
SM293.5 ms93.5 ms
EdDSA (Ed25519)25.7 ms22.8 ms
EdDSA (Ed448)128.7 ms112 ms

Key Exchange Algorithms

K64F12 @ 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)305.6 ms303.7 ms
Diffie-Hellman (2048 bits)2009 ms2001 ms

EC Key Exchange Algorithms

K64F12 @ 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)93.5 ms93.2 ms
ECDH (secp384r1)220.4 ms220 ms
ECDH (secp521r1)452.2 ms451.6 ms
ECDH (brainpoolP256r1)174.1 ms173.8 ms
ECDH (brainpoolP384r1)450 ms449.6 ms
ECDH (brainpoolP512r1)926.8 ms926.3 ms
ECDH (SM2)93.5 ms93.2 ms
ECDH (X25519)13.9 ms13.9 ms
ECDH (X448)63.8 ms63.8 ms