{
  "id": "2023/1194",
  "url": "https://opencryptology.org/2023/1194",
  "original_url": "https://eprint.iacr.org/2023/1194",
  "title": "HI-Kyber: A novel high-performance implementation scheme of Kyber based on GPU",
  "authors": [
    "Xinyi Ji",
    "Jiankuo Dong",
    "Pinchang Zhang",
    "Deng Tonggui",
    "Hua Jiafeng",
    "Fu Xiao"
  ],
  "affiliations": null,
  "abstract": "CRYSTALS-Kyber, as the only public key encryption (PKE) algorithm selected by the National Institute of Standards and Technology (NIST) in the third round, is considered one of the most promising post-quantum cryptography (PQC) schemes. Lattice-based cryptography uses complex discrete alogarithm problems on lattices to build secure encryption and decryption systems to resist attacks from quantum computing. Performance is an important bottleneck affecting the promotion of post quantum cryptography. In this paper, we present a High-performance Implementation of Kyber (named HI-Kyber) on the NVIDIA GPUs, which can increase the key-exchange performance of Kyber to the million-level. Firstly, we propose a lattice-based PQC implementation architecture based on kernel fusion, which can avoid redundant global-memory access operations. Secondly, We optimize and implement the core operations of CRYSTALS-Kyber, including Number Theoretic Transform (NTT), inverse NTT (INTT), pointwise multiplication, etc. Especially for the calculation bottleneck NTT operation, three novel methods are proposed to explore extreme performance: the sliced layer merging (SLM), the sliced depth-first search (SDFS-NTT) and the entire depth-first search (EDFS-NTT), which achieve a speedup of 7.5%, 28.5%, and 41.6% compared to the native implementation. Thirdly, we conduct comprehensive performance experiments with different parallel dimensions based on the above optimization. Finally, our key exchange performance reaches 1,664 kops/s. Specifically, based on the same platform, our HI-Kyber is 3.52$\\times$ that of the GPU implementation based on the same instruction set and 1.78$\\times$ that of the state-of-the-art one based on AI-accelerated tensor core.",
  "category": "Implementation",
  "license": {
    "code": "CC BY-NC-SA",
    "url": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
    "label": "CC BY-NC-SA 4.0",
    "attribution": "“HI-Kyber: A novel high-performance implementation scheme of Kyber based on GPU” by Xinyi Ji, Jiankuo Dong, Pinchang Zhang, Deng Tonggui, Hua Jiafeng, Fu Xiao, Cryptology ePrint Archive, Paper 2023/1194, https://eprint.iacr.org/2023/1194. Licensed under CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": true
  },
  "dates": {
    "submitted": "2023-08-06T07:27:48Z",
    "updated": "2023-08-06T07:27:48Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1194.pdf",
    "sha256": "0e1cd9e6bc839d8385bc457e6c6e93ac365bcce5a3c4cfae2ab680e07e019c67",
    "size": 3941910,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1194/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1194.pdf",
      "size": 3941910,
      "sha256": "0e1cd9e6bc839d8385bc457e6c6e93ac365bcce5a3c4cfae2ab680e07e019c67",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20240425201006id_/https://eprint.iacr.org/2023/1194.pdf",
      "captured_at": "2024-04-25T20:10:06Z",
      "size": 2910822
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1194.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 3941910
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1194,\n      author = {Xinyi Ji and Jiankuo Dong and Pinchang Zhang and Deng Tonggui and Hua Jiafeng and Fu Xiao},\n      title = {HI-Kyber: A novel high-performance implementation scheme of Kyber based on GPU},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1194},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1194}\n}"
}
