TPU as Cryptographic Accelerator

Rabimba Karanjai,Sangwon Shin,and Wujie Xiong,Xinxin Fan,Lin Chen,Tianwei Zhang,Taeweon Suh,Weidong Shi,Veronika Kuchta,Francesco Sica,Lei Xu
DOI: https://doi.org/10.1145/3696843.3696844
2024-10-03
Abstract:Cryptographic schemes like Fully Homomorphic Encryption (FHE) and Zero-Knowledge Proofs (ZKPs), while offering powerful privacy-preserving capabilities, are often hindered by their computational complexity. Polynomial multiplication, a core operation in these schemes, is a major performance bottleneck. While algorithmic advancements and specialized hardware like GPUs and FPGAs have shown promise in accelerating these computations, the recent surge in AI accelerators (TPUs/NPUs) presents a new opportunity. This paper explores the potential of leveraging TPUs/NPUs to accelerate polynomial multiplication, thereby enhancing the performance of FHE and ZKP schemes. We present techniques to adapt polynomial multiplication to these AI-centric architectures and provide a preliminary evaluation of their effectiveness. We also discuss current limitations and outline future directions for further performance improvements, paving the way for wider adoption of advanced cryptographic tools.
Cryptography and Security
What problem does this paper attempt to address?