Paper 2024/2093 Original: eprint.iacr.org/2024/2093 ↗

Exploring Large Integer Multiplication for Cryptography Targeting In-Memory Computing

Florian Krieger
Florian Hirner
Sujoy Sinha Roy
Abstract

Emerging cryptographic systems such as Fully Homomorphic Encryption (FHE) and Zero-Knowledge Proofs (ZKP) are computation- and data-intensive. FHE and ZKP implementations in software and hardware largely rely on the von Neumann architecture, where a significant amount of energy is lost on data movements. A promising computing paradigm is computing in memory (CIM), which enables computations to occur directly within memory, thereby reducing data movements and energy consumption. However, efficiently performing large integer multiplications - critical in FHE and ZKP - is an open question, as existing CIM methods are limited to small operand sizes. In this work, we address this question by exploring advanced algorithmic approaches for large integer multiplication, identifying the Karatsuba algorithm as the most effective for CIM applications. Thereafter, we design the first Karatsuba multiplier for resistive CIM crossbars. Our multiplier uses a three-stage pipeline to enhance throughput and, additionally, balances memory endurance with efficient array sizes. Compared to existing CIM multiplication methods, when scaled up to the bit widths required in ZKP and FHE, our design achieves up to 916x in throughput and 281x in area-time product improvements.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
History
2024-12-30: last updated
2024-12-30: published
Short URL
https://ia.cr/2024/2093
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2024/2093,
      author = {Florian Krieger and Florian Hirner and Sujoy Sinha Roy},
      title = {Exploring Large Integer Multiplication for Cryptography Targeting In-Memory Computing},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/2093},
      year = {2024},
      url = {https://eprint.iacr.org/2024/2093}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.