{
  "id": "2022/1621",
  "url": "https://opencryptology.org/2022/1621",
  "original_url": "https://eprint.iacr.org/2022/1621",
  "title": "cuXCMP: CUDA-Accelerated Private Comparison Based on Homomorphic Encryption",
  "authors": [
    "Hao Yang",
    "Shiyu Shen",
    "Zhe Liu",
    "Yunlei Zhao"
  ],
  "affiliations": null,
  "abstract": "Private comparison schemes constructed on homomorphic encryption oﬀer the noninteractive, output expressive and parallelizable features, and have advantages in communication bandwidth and performance. In this paper, we propose cuXCMP, which allows negative and ﬂoat inputs, oﬀers fully output expressive feature, and is more extensible and practical compared to XCMP (AsiaCCS 2018). Meanwhile, we introduce several memory-centric optimizations of the constant term extraction kernel tailored for CUDA-enabled GPUs. Firstly, we fully utilize the shared memory and present compact GPU implementations of NTT and INTT using a single block; Secondly, we fuse multiple kernels into one AKS kernel, which conducts the automorphism and key switching operation, and reduce the grid dimension for better resource usage, data access rate and synchronization. Thirdly, we precisely measure the IO latency and choose an appropriate number of CUDA streams to enable concurrent execution of independent operations, yielding a constant term extraction kernel with perfect latency hide, i.e., CTX. Combining these approaches, we boost the overall execution time to optimum level and the speedup ratio increases with the comparison scales. For one comparison, we speedup the AKS by 23.71×, CTX by 15.58×, and scheme by 1.83× (resp., 18.29×, 11.75×, and 1.42×) compared to C (resp., AVX512) baselines, respectively. For 32 comparisons, our CTX and scheme implementations outperform the C (resp., AVX512) baselines by 112.00× and 1.99× (resp., 81.53× and 1.51×).",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“cuXCMP: CUDA-Accelerated Private Comparison Based on Homomorphic Encryption” by Hao Yang, Shiyu Shen, Zhe Liu, Yunlei Zhao, Cryptology ePrint Archive, Paper 2022/1621, https://eprint.iacr.org/2022/1621. 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-11-21T08:54:48Z",
    "updated": "2022-11-21T08:54:48Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1621.pdf",
    "sha256": "eaf06d827705a2ed9e32b146f33c9110959dad4123978a42e28047206190180f",
    "size": 1295066,
    "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/1621/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/1621.pdf",
      "size": 1295066,
      "sha256": "eaf06d827705a2ed9e32b146f33c9110959dad4123978a42e28047206190180f",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1621.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 1295066
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20221121143148id_/https://eprint.iacr.org/2022/1621.pdf",
      "captured_at": "2022-11-21T14:31:48Z",
      "size": 1231582
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1621,\n      author = {Hao Yang and Shiyu Shen and Zhe Liu and Yunlei Zhao},\n      title = {cuXCMP: CUDA-Accelerated Private Comparison Based on Homomorphic Encryption},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1621},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1621}\n}"
}
