English

LaMoS: Enabling Efficient Large Number Modular Multiplication through SRAM-based CiM Acceleration

Cryptography and Security 2025-11-06 v1 Hardware Architecture

Abstract

Barrett's algorithm is one of the most widely used methods for performing modular multiplication, a critical nonlinear operation in modern privacy computing techniques such as homomorphic encryption (HE) and zero-knowledge proofs (ZKP). Since modular multiplication dominates the processing time in these applications, computational complexity and memory limitations significantly impact performance. Computing-in-Memory (CiM) is a promising approach to tackle this problem. However, existing schemes currently suffer from two main problems: 1) Most works focus on low bit-width modular multiplication, which is inadequate for mainstream cryptographic algorithms such as elliptic curve cryptography (ECC) and the RSA algorithm, both of which require high bit-width operations; 2) Recent efforts targeting large number modular multiplication rely on inefficient in-memory logic operations, resulting in high scaling costs for larger bit-widths and increased latency. To address these issues, we propose LaMoS, an efficient SRAM-based CiM design for large-number modular multiplication, offering high scalability and area efficiency. First, we analyze the Barrett's modular multiplication method and map the workload onto SRAM CiM macros for high bit-width cases. Additionally, we develop an efficient CiM architecture and dataflow to optimize large-number modular multiplication. Finally, we refine the mapping scheme for better scalability in high bit-width scenarios using workload grouping. Experimental results show that LaMoS achieves a 7.02×7.02\times speedup and reduces high bit-width scaling costs compared to existing SRAM-based CiM designs.

Keywords

Cite

@article{arxiv.2511.03341,
  title  = {LaMoS: Enabling Efficient Large Number Modular Multiplication through SRAM-based CiM Acceleration},
  author = {Haomin Li and Fangxin Liu and Chenyang Guan and Zongwu Wang and Li Jiang and Haibing Guan},
  journal= {arXiv preprint arXiv:2511.03341},
  year   = {2025}
}

Comments

Accepted by 2026 Design, Automation and Test in Europe Conference (DATE 2026)

R2 v1 2026-07-01T07:22:38.908Z