Skip to main content

Trustable homomorphic computation

Project description

Trustable homomorphic computation

THC is a Python package that provides a practical framework for cost-effective trustable homomorphic computation.

It leverages the modular extension technique, which was developed to protect embedded cryptographic implementations against fault injection attacks, to ensure the integrity of a computation delegated to an untrusted third-party.

Installation

You can either install THC using PyPI with the following command:

$ pip3 install thc

Or you can download its source code and run the following command in the root directory of the repository:

$ pip3 install .

You can check that the installation went well by running the included test demo:

$ python3 -m thc.demo.faults

Dependencies

THC depends on the pycrypto package to generate prime numbers.

You can probably install it using your distribution's package manager: it's the python3-crypto package on Debian and derivatives.

If you choose to let pip install pycrypto, you will need to have some Python development package installed as it needs to compile C extensions. On Debian and derivatives, the necessary packages are named python3-dev and python3-wheel.

Demo

In addition to the previously mentioned test demo of THC, an electronic voting software (server and client) is provided in the thc.demo.evoting package.

Please refer to its README for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thc-0.1.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

thc-0.1.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file thc-0.1.1.tar.gz.

File metadata

  • Download URL: thc-0.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for thc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d1e8b8bb1d96bcfaaddde4b090af146d65e206288e07ad61958d46b65d199eac
MD5 62ed8160b05fe7cac280df29adcb7e05
BLAKE2b-256 1e69f6a03c435d8b1dc7e951fe28f352e5994eba48cdd964a5832a08ab2b4fa7

See more details on using hashes here.

Provenance

File details

Details for the file thc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: thc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for thc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a06ddd8db9e6565cbf3a31a2d0af69f135e6de9af80c32149f2d6f1b83fd060c
MD5 3495c5e1cb063e5e343d008575775926
BLAKE2b-256 b7d643b64e521e25babbf4925eb71b1fdc7d9cf04083c31432415dced02f573e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page