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)
Metadata
Release files for HEtools 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| HEtools-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / HEtools-0.5.0-py3-none-any.whl
| Download URL | HEtools-0.5.0-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e9a74201bcf673993808cd62bf7fec85ea38fd67fdf5c0abdc816d7b2ea3ba8
|
|
BLAKE2b-256 checksum How to use checksums |
4f7596d603638a0d360c4a1a0dc6d7df4c731bc4615f1d168c64312d0fdc2dc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for HEtools 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.