No project description provided
Project description
HEtools
Homomorphic encryption (Brakerski and Vaikuntanathan (2014) doi:10.1137/120868669) using Ring Learning with Errors (Lyubashevsky et al. (2012) https://eprint.iacr.org/2012/230) is a form of Learning with Errors (Regev (2005) doi:10.1145/1060590.1060603) using polynomial rings over finite fields. Functions to generate the required polynomials (using 'polynom'), with various distributions of coefficients are provided. Additionally, functions to generate and take coefficient modulo are provided.
Installation
You can install HEtools using
pip install HEtools
Example
This is a basic example which shows you how to solve a common problem:
import HEtools
from numpy.polynomial import Polynomial
p = Polynomial((9,8,13))
coefmod(p,2)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file HEtools-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: HEtools-0.5.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9a74201bcf673993808cd62bf7fec85ea38fd67fdf5c0abdc816d7b2ea3ba8 |
|
MD5 | 64ab93a289c13b649e557936d34f84a4 |
|
BLAKE2b-256 | 4f7596d603638a0d360c4a1a0dc6d7df4c731bc4615f1d168c64312d0fdc2dc7 |