# py-fhe
A Python 3 library for fully homomorphic encryption. Currently, this library includes an implementation of the Brakerski-Fan-Vercauteren (BFV) scheme, the Cheon-Kim-Kim-Song (CKKS) scheme, and bootstrapping for CKKS.
## Installation
To install the library run the following command in the root folder:
```sh
pip install -e .
```
This should install the necessary dependencies.
## Tests
You can run all the unit tests as follows:
```sh
pytest
```
To run a specific test file (i.e. test_polynomial.py), you can run the file using Python 3 with the command
```sh
python3 tests/test_polynomial.py
```
To run all tests in a single class from a test file (i.e. TestPolynomial from tests/test_polynomial.py), you can use the command
```sh
python3 tests/test_polynomial.py TestPolynomial
```
To run a specific test from a test file (i.e. TestPolynomial.test_add from tests/test_polynomial.py), you can use the command
```sh
python3 tests/test_polynomial.py TestPolynomial.test_add
```
## Examples
See the examples folder for examples on how to use the library.
没有合适的资源?快使用搜索试试~ 我知道了~
用于完全同态加密的Python库.zip
共56个文件
py:53个
md:1个
license:1个
需积分: 5 0 下载量 136 浏览量
2023-03-23
22:16:54
上传
评论
收藏 55KB ZIP 举报
温馨提示
用于完全同态加密的Python库
资源推荐
资源详情
资源评论
收起资源包目录
用于完全同态加密的Python库.zip (56个子文件)
py-fhe-master
setup.py 341B
LICENSE 1KB
tests
__init__.py 0B
helper.py 1KB
test_crt.py 871B
test_bit_operations.py 947B
test_polynomial.py 4KB
ckks
run_ckks_performance.py 5KB
test_ckks_arithmetic.py 7KB
test_ckks_encrypt_decrypt.py 2KB
test_ckks_rotation.py 6KB
test_ckks_encoder.py 3KB
test_ckks_bootstrapping.py 17KB
bfv
run_bfv_performance.py 3KB
test_batch_encoder.py 2KB
test_bfv_encrypt_decrypt.py 3KB
test_bfv_evaluator.py 3KB
test_int_encoder.py 1KB
test_matrix_operations.py 2KB
test_random_sample.py 515B
test_number_theory.py 2KB
test_ntt.py 3KB
examples
ckks_mult_example.py 1KB
bfv_mult_example.py 1KB
ckks
__init__.py 0B
ckks_encoder.py 3KB
ckks_bootstrapping_context.py 3KB
ckks_decryptor.py 2KB
ckks_key_generator.py 4KB
ckks_evaluator.py 24KB
ckks_parameters.py 3KB
ckks_encryptor.py 4KB
bfv
__init__.py 0B
bfv_parameters.py 1KB
bfv_encryptor.py 2KB
bfv_evaluator.py 3KB
bfv_relin_key.py 1KB
int_encoder.py 2KB
batch_encoder.py 2KB
bfv_decryptor.py 2KB
bfv_key_generator.py 3KB
.gitignore 94B
util
__init__.py 0B
public_key.py 806B
ciphertext.py 1KB
bit_operations.py 1KB
rotation_key.py 788B
secret_key.py 585B
ntt.py 14KB
matrix_operations.py 3KB
random_sample.py 3KB
number_theory.py 3KB
plaintext.py 796B
polynomial.py 15KB
crt.py 3KB
README.md 1KB
共 56 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功