{
  "id": "2022/881",
  "url": "https://opencryptology.org/2022/881",
  "original_url": "https://eprint.iacr.org/2022/881",
  "title": "A Novel High-performance Implementation of CRYSTALS-Kyber with AI Accelerator",
  "authors": [
    "Lipeng Wan",
    "Fangyu Zheng",
    "Guang Fan",
    "Rong Wei",
    "Lili Gao",
    "Jiankuo Dong",
    "Jingqiang Lin",
    "Yuewu Wang"
  ],
  "affiliations": null,
  "abstract": "Public-key cryptography, including conventional cryptosystems and post-quantum cryptography, involves computation-intensive workloads. With noticing the extraordinary computing power of AI accelerators, in this paper, we further explore the feasibility to introduce AI accelerators into high-performance cryptographic computing.\nSince AI accelerators are dedicated to machine learning or neural networks, the biggest challenge is how to transform cryptographic workloads into their operations, while ensuring the correctness of the results and bringing convincing performance gains.\n\nAfter investigating and analysing the workload of NVIDIA AI accelerator, Tensor Core, we choose to utilize it to accelerate the polynomial multiplication, usually the most time-consuming part in lattice-based cryptography.\nWe take measures to accommodate the matrix-multiply-and-add mode of Tensor Core and make a trade-off between precision and performance, to leverage it as a high-performance NTT box performing NTT/INTT through CUDA C++ WMMA APIs.\nMeanwhile, we take CRYSTALS-Kyber, the candidate to be standardized by NIST, as a case study on RTX 3080 with the Ampere Tensor Core.\nThe empirical results show that the customized NTT of polynomial vector ($n=256,k=4$) with our NTT box obtains a speedup around 6.47x that of the state-of-the-art implementation on the same GPU platform.\n\nCompared with the AVX2 implementation submitted to NIST, our Kyber-1024 can achieve a speedup of 26x, 36x, and 35x for each phase.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Novel High-performance Implementation of CRYSTALS-Kyber with AI Accelerator” by Lipeng Wan, Fangyu Zheng, Guang Fan, Rong Wei, Lili Gao, Jiankuo Dong, Jingqiang Lin, Yuewu Wang, Cryptology ePrint Archive, Paper 2022/881, https://eprint.iacr.org/2022/881. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-07-06T03:36:55Z",
    "updated": "2022-08-16T02:02:10Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/881.pdf",
    "sha256": "f7a8395a88fc01429c35e7d035e1d24c442f3554007a5f91086f12159aa269ef",
    "size": 661898,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/881/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/881.pdf",
      "size": 661898,
      "sha256": "f7a8395a88fc01429c35e7d035e1d24c442f3554007a5f91086f12159aa269ef",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250622001245id_/https://eprint.iacr.org/2022/881.pdf",
      "captured_at": "2025-06-22T00:12:45Z",
      "size": 617163
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/881.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 661898
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/881,\n      author = {Lipeng Wan and Fangyu Zheng and Guang Fan and Rong Wei and Lili Gao and Jiankuo Dong and Jingqiang Lin and Yuewu Wang},\n      title = {A Novel High-performance Implementation of CRYSTALS-Kyber with AI Accelerator},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/881},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/881}\n}"
}
