信息网络安全 ›› 2019, Vol. 19 ›› Issue (6): 76-83.doi: 10.3969/j.issn.1671-1122.2019.06.010

• 技术研究 • 上一篇    下一篇

基于GPU的全同态加密软件库调试与分析

刘文超1, 潘峰1(), 杨晓元1,2, 周潭平1,2   

  1. 1. 武警工程大学密码工程学院,陕西西安 710086
    2. 网络与信息安全武警部队重点实验室,陕西西安 710086
  • 收稿日期:2018-12-05 出版日期:2019-06-10 发布日期:2020-05-11
  • 作者简介:

    作者简介:刘文超(1994—),男,甘肃,硕士研究生,主要研究方向为全同态密码、并行计算;潘峰(1967—),男,北京,教授,硕士,主要研究方向为对称密码;杨晓元(1959—),男,陕西,教授,硕士,主要研究方向为对称密码;周潭平(1989—),男,江西,讲师,博士,主要研究方向为全同态密码。

  • 基金资助:
    国家重点研发计划 [2017YFB0802000];国家自然科学基金[U1636114]

Debug and Analysis of Fully Homomorphic Encryption Library Based on GPU

Wenchao LIU1, Feng PAN1(), Xiaoyuan YANG1,2, Tanping ZHOU1,2   

  1. 1. School of Cryptographic Engineering, Engineering University of the Chinese People’s Armed Police, Xi’an Shaanxi 710086, China
    2. Key Laboratory of Network and Information Security of the Chinese People’s Armed Police, Xi’an Shaanxi 710086, China
  • Received:2018-12-05 Online:2019-06-10 Published:2020-05-11

摘要:

全同态加密能够较好的解决云计算中的隐私保护问题,但目前效率较低仍然是制约全同态加密实用化的瓶颈。基于格的全同态加密方案中存在大量独立矩阵和向量运算,利用GPU适合大量独立数据运算的特点,可以大幅提升全同态加密方案的同态运算效率。文章分析了全同态加密算法的结构并验证了全同态加密软件库的可靠性,对自举过程中噪音的变化和不同参数的正确性进行分析,对全同态加密软件算法库TFHE以及其对应的GPU版本cuFHE,分别进行了调试和分析。实验结果表明,GPU版本的cuFHE运算速度是CPU版本TFHE运算速度的4.5倍,利用GPU可以大幅提升全同态加密方案的运行速度。

关键词: 全同态加密, TFHEW, GPU, 代码库调试

Abstract:

Fully homomorphic encryption can solve the privacy protection problem in cloud computing well, but the low efficiency is still the bottleneck of the practical application of full homomorphic encryption. There are a large number of independent matrix and vector operations in the lattice-based homomorphic encryption scheme and GPU is suitable for processing large number of independent data operations, which can greatly improve the homomorphic operation efficiency of the homomorphic encryption scheme. This paper analyzes the structure of the homomorphic encryption algorithm, verifies the reliability of the homomorphic encryption software library and analysis of noise changes and correctness of different parameters during the bootstrap process. The homomorphic encryption software library TFHE and its corresponding GPU version cuFHE was debugged and analyzed separately. The experimental results show that the GPU version of the TFHE operation speed is 4.5 times that of the CPU version TFHE. The GPU can greatly improve the homomorphic running speed of the homomorphic encryption scheme.

Key words: fully homomorphic encryption, TFHEW, GPU, code library debugging

中图分类号: