Repurposing Neural Networks for Efficient Cryptographic Computation
Xin Jin, Shiqing Ma, Zhiqiang Lin
Abstract
—While neural networks (NNs) are traditionally associated with tasks such as image recognition and natural language processing, this paper presents a novel application of NNs for efficient cryptographic computations. Leveraging the Turing completeness and inherent adaptability of NN models, we propose a transformative approach that efficiently accelerates cryptographic computations on various platforms. More specifically, with a program translation framework that converts traditional cryptographic algorithms into NN models, our proof-of-concept implementations in TensorFlow demonstrate substantial performance improvements: encryption speeds for AES, Chacha20, and Salsa20 show increases of up to 4.09 × , 5.44 × , and 5.06 × , respectively, compared to existing GPU-based cryptographic solutions written by human experts. These enhancements are achieved without compromising the security of the original cryptographic algorithms, ensuring that our neural network-based approach maintains robust security standards. This repurposing of NNs opens new pathways for the development of scalable, efficient, and secure cryptographic systems that can adapt to the evolving demands of modern computing environments.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 47dbea44-9c6f-477e-b610-7a6f2125bd8dBuilds on6
- Tracr: Compiled Transformers as a Laboratory for InterpretabilityDavid Lindner, János Kramár, Sebastian Farquhar, Matthew Rahtz et al.NeurIPS 2023 · 113 citations
- Mind Your Weight(s): A Large-scale Study on Insufficient Machine Learning Model Protection in Mobile AppsZhichuang Sun, Ruimin Sun, Long Lu, Alan MisloveUSENIX Security 2021 · 101 citations
- SymLM: Predicting Function Names in Stripped Binaries via Context-Sensitive Execution-Aware Code EmbeddingsXin Jin, Kexin Pei, Jun Yeon Won, Zhiqiang LinCCS 2022 · 56 citations
- Understanding IoT Security from a Market-Scale PerspectiveXin Jin, Sunil Manandhar, Kaushal Kafle, Zhiqiang Lin et al.CCS 2022 · 30 citations
- Capture: Centralized Library Management for Heterogeneous IoT DevicesHan Zhang, Abhijith Anilkumar, Matt Fredrikson, Yuvraj AgarwalUSENIX Security 2021 · 18 citations
Related papers
- Deep Neural CryptographyDavid Gérault, Anna Hambitzer, Eyal Ronen, Adi ShamirEUROCRYPT 2026 · 1 citation
- SAFENet: A Secure, Accurate and Fast Neural Network InferenceQian Lou, Yilin Shen, Hongxia Jin, Lei JiangICLR 2021 · 65 citations
- Privacy-Preserving DNN Training with Prefetched Meta-Keys on Heterogeneous Neural Network AcceleratorsQiushi Li, Ju Ren, Yan Zhang, Chengru Song et al.DAC 2023 · 33 citations
- SpENCNN: Orchestrating Encoding and Sparsity for Fast Homomorphically Encrypted Neural Network InferenceRan Ran, Xinwei Luo, Wei Wang, Tao Liu et al.ICML 2023 · 17 citations
- WPC: Weight Plaintext Compression for CNN Inference based on RNS-CKKSGuiming Shi, Yuchen Wei, Shengyu Fan, Xianglong Deng et al.CCS 2025
