A fresh look on slow asymmetric crypto: accelerating WolfSSL on end-nodes processors

Abstract The rapid growth of the Internet of Things (IoT) emphasizes the need for secure data transmission between IoT devices and edge computing. Many IoT systems utilize asymmetric cryptography , particularly elliptic curve cryptography (ECC), which is favored in resource-constrained environments for its efficient encryption and smaller key sizes. ECC-based protocols and Diffie-Hellman (DH) key agreement schemes are integral to edge computing. WolfSSL is an efficient SSL library with a significantly smaller memory footprint, optimized for IoT and embedded systems, and supports ECC and DH public key options for over 2 billion devices daily. This study evaluates processor extensions and instruction customization within WolfSSL’s benchmark code to enhance ECC and DH performance. We dissect the implementation into key routines such as Montgomery reduction and multiplication, recommending processor hardware extensions and software modifications to improve computational speed. Our analysis covers various processor designs, from single-issue base processors to multi-issue configurations with custom instructions, revealing performance trade-offs. Our results indicate that our designs outperform the most optimized WolfSSL software implementations on base RISC processors, achieving speedups of up to $$\{6.25x, 4.2x\}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>{</mml:mo> <mml:mn>6.25</mml:mn> <mml:mi>x</mml:mi> <mml:mo>,</mml:mo> <mml:mn>4.2</mml:mn> <mml:mi>x</mml:mi> <mml:mo>}</mml:mo> </mml:mrow> </mml:math> for ECC and $$\{5.6x, 3.9x\}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>{</mml:mo> <mml:mn>5.6</mml:mn> <mml:mi>x</mml:mi> <mml:mo>,</mml:mo> <mml:mn>3.9</mml:mn> <mml:mi>x</mml:mi> <mml:mo>}</mml:mo> </mml:mrow> </mml:math> for DH algorithms. Moreover, comparing our work to architectures like ARM6/8 and RISC-V platforms shows significant performance improvements. These advancements not only enhance ECC and DH operations but also benefit various Post-Quantum Cryptography (PQC) primitives. Our findings achieve significant speed improvements for Montgomery reduction and point multiplication while maintaining minimal area cost, making them advantageous for applications using lattice-based and code-based PQC algorithms.

Authors

Institutions

Publication Details

Journal
Journal of Cryptographic Engineering
Published
2026-04-01
DOI
https://doi.org/10.1007/s13389-026-00389-9
Primary Topic
Cryptography and Residue Arithmetic
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A fresh look on slow asymmetric crypto: accelerating WolfSSL on end-nodes processors

Itamar Levi, Oren Ganon, Nadav Elkayam, Yuval Rubakh
Journal of Cryptographic Engineering
Cryptography and Residue Arithmetic
article

A fresh look on slow asymmetric crypto: accelerating WolfSSL on end-nodes processors

Itamar Levi, Oren Ganon, Nadav Elkayam, Yuval Rubakh
article en

Abstract

Abstract The rapid growth of the Internet of Things (IoT) emphasizes the need for secure data transmission between IoT devices and edge computing. Many IoT systems utilize asymmetric cryptography , particularly elliptic curve cryptography (ECC), which is favored in resource-constrained environments for its efficient encryption and smaller key sizes. ECC-based protocols and Diffie-Hellman (DH) key agreement schemes are integral to edge computing. WolfSSL is an efficient SSL library with a significantly smaller memory footprint, optimized for IoT and embedded systems, and supports ECC and DH public key options for over 2 billion devices daily. This study evaluates processor extensions and instruction customization within WolfSSL’s benchmark code to enhance ECC and DH performance. We dissect the implementation into key routines such as Montgomery reduction and multiplication, recommending processor hardware extensions and software modifications to improve computational speed. Our analysis covers various processor designs, from single-issue base processors to multi-issue configurations with custom instructions, revealing performance trade-offs. Our results indicate that our designs outperform the most optimized WolfSSL software implementations on base RISC processors, achieving speedups of up to $$\{6.25x, 4.2x\}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>{</mml:mo> <mml:mn>6.25</mml:mn> <mml:mi>x</mml:mi> <mml:mo>,</mml:mo> <mml:mn>4.2</mml:mn> <mml:mi>x</mml:mi> <mml:mo>}</mml:mo> </mml:mrow> </mml:math> for ECC and $$\{5.6x, 3.9x\}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mo>{</mml:mo> <mml:mn>5.6</mml:mn> <mml:mi>x</mml:mi> <mml:mo>,</mml:mo> <mml:mn>3.9</mml:mn> <mml:mi>x</mml:mi> <mml:mo>}</mml:mo> </mml:mrow> </mml:math> for DH algorithms. Moreover, comparing our work to architectures like ARM6/8 and RISC-V platforms shows significant performance improvements. These advancements not only enhance ECC and DH operations but also benefit various Post-Quantum Cryptography (PQC) primitives. Our findings achieve significant speed improvements for Montgomery reduction and point multiplication while maintaining minimal area cost, making them advantageous for applications using lattice-based and code-based PQC algorithms.

Journal of Cryptographic EngineeringVol. 16(1)
Bar-Ilan University (IL)
Bar-Ilan University
Openalex Percentile: Top 4%
Cryptography and Residue Arithmetic
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.