DFT的matlab源代码-nufhe:用Python实现的NuCypher完全同态加密(NuFHE)库

上传者: 38674627 | 上传时间: 2021-07-05 17:53:46 | 文件大小: 138KB | 文件类型: ZIP
DFT的matlab源代码圆环上完全同态加密的GPU实现 该库通过使用CUDA和OpenCL实现了完全同态加密算法。 与TFHE不同,在TFHE中内部使用FFT来加快多项式乘法的速度, nufhe可以使用FFT或纯整数NTT(有限域上类似DFT的变换)。 后者基于的算术运算和NTT方案。 有关更多详细信息,请参阅。 用法示例 import random import nufhe size = 32 bits1 = [ random . choice ([ False , True ]) for i in range ( size )] bits2 = [ random . choice ([ False , True ]) for i in range ( size )] reference = [ not ( b1 and b2 ) for b1 , b2 in zip ( bits1 , bits2 )] ctx = nufhe . Context () secret_key , cloud_key = ctx . make_key_pair () ciphertext1 = ct

文件下载

资源详情

[{"title":"( 77 个子文件 138KB ) DFT的matlab源代码-nufhe:用Python实现的NuCypher完全同态加密(NuFHE)库","children":[{"title":"nufhe-master","children":[{"title":"nufhe","children":[{"title":"bootstrap.py <span style='color:#111;'> 7.58KB </span>","children":null,"spread":false},{"title":"tgsw_gpu.mako <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"lwe_gpu.py <span style='color:#111;'> 12.48KB </span>","children":null,"spread":false},{"title":"api_low_level.py <span style='color:#111;'> 9.70KB </span>","children":null,"spread":false},{"title":"polynomials_gpu.py <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"polynomial_transform_fft.py <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"gates.py <span style='color:#111;'> 24.44KB </span>","children":null,"spread":false},{"title":"tlwe_cpu.py <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"polynomial_transform.py <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"transform","children":[{"title":"computation.py <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"arithmetic.py <span style='color:#111;'> 8.27KB </span>","children":null,"spread":false},{"title":"ntt.py <span style='color:#111;'> 5.42KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 949B </span>","children":null,"spread":false},{"title":"computation.mako <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"ntt_cpu.py <span style='color:#111;'> 4.89KB </span>","children":null,"spread":false},{"title":"fft.py <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"fft.mako <span style='color:#111;'> 9.21KB </span>","children":null,"spread":false},{"title":"arithmetic.mako <span style='color:#111;'> 31.29KB </span>","children":null,"spread":false},{"title":"ntt.mako <span style='color:#111;'> 13.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"tlwe.py <span style='color:#111;'> 7.19KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 549B </span>","children":null,"spread":false},{"title":"tgsw_gpu.py <span style='color:#111;'> 7.66KB </span>","children":null,"spread":false},{"title":"blind_rotate.py <span style='color:#111;'> 11.48KB </span>","children":null,"spread":false},{"title":"numeric_functions_gpu.py <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"lwe_cpu.py <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"lwe.py <span style='color:#111;'> 14.47KB </span>","children":null,"spread":false},{"title":"blind_rotate.mako <span style='color:#111;'> 8.36KB </span>","children":null,"spread":false},{"title":"polynomial_transform_ntt.py <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"operators_integer.py <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false},{"title":"performance.py <span style='color:#111;'> 9.94KB </span>","children":null,"spread":false},{"title":"tgsw_cpu.py <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"lwe_gpu.mako <span style='color:#111;'> 5.94KB </span>","children":null,"spread":false},{"title":"tlwe_gpu.py <span style='color:#111;'> 8.66KB </span>","children":null,"spread":false},{"title":"random_numbers.py <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false},{"title":"tgsw.py <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false},{"title":"tlwe_gpu.mako <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"polynomials_gpu.mako <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"numeric_functions.py <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"api_high_level.py <span style='color:#111;'> 13.63KB </span>","children":null,"spread":false},{"title":"computation_cache.py <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"polynomials_cpu.py <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"numeric_functions_cpu.py <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"polynomials.py <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false}],"spread":false},{"title":"MANIFEST.in <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":".bumpversion.cfg <span style='color:#111;'> 411B </span>","children":null,"spread":false},{"title":".circleci","children":[{"title":"config.yml <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false}],"spread":true},{"title":"doc","children":[{"title":"source","children":[{"title":"conf.py <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"history.rst <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"index.rst <span style='color:#111;'> 6.78KB </span>","children":null,"spread":false},{"title":"api.rst <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"implementation_details.rst <span style='color:#111;'> 8.70KB </span>","children":null,"spread":false}],"spread":true},{"title":"make.bat <span style='color:#111;'> 813B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 108B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 606B </span>","children":null,"spread":false}],"spread":true},{"title":"examples","children":[{"title":"multi_gpu.py <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"serialization.py <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"gate_nand.py <span style='color:#111;'> 552B </span>","children":null,"spread":false},{"title":"gate_nand_low_level.py <span style='color:#111;'> 750B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"test_transform","children":[{"title":"test_computation.py <span style='color:#111;'> 8.77KB </span>","children":null,"spread":false},{"title":"test_arithmetic.py <span style='color:#111;'> 9.70KB </span>","children":null,"spread":false},{"title":"test_ntt_cpu.py <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 699B </span>","children":null,"spread":false}],"spread":true},{"title":"test_tgsw.py <span style='color:#111;'> 6.25KB </span>","children":null,"spread":false},{"title":"test_gates.py <span style='color:#111;'> 18.03KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"test_api_low_level.py <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"test_tlwe.py <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"test_numeric_functions.py <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"conftest.py <span style='color:#111;'> 4.36KB </span>","children":null,"spread":false},{"title":"test_lwe.py <span style='color:#111;'> 16.96KB </span>","children":null,"spread":false},{"title":"test_polynomials.py <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"test_api_high_level.py <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"LICENSE.md <span style='color:#111;'> 34.10KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 76B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明