Skip to main content

Homomorphic Encryption processing Unit (HEU) is a subproject of Secretflow that implements high-performance homomorphic encryption algorithms.

Project description

HEU

CircleCI PyPI version

中文

HEU (Homomorphic Encryption processing Unit) is a user-friendly and high-performance homomorphic encryption library that supports multiple types and scalable hardware acceleration.

document

https://www.secretflow.org.cn/docs/heu/

Repo status

Homomorphic encryption algorithms are mainly divided into two categories: partially homomorphic encryption (PHE) and fully homomorphic encryption (FHE). Currently, HEU supports most PHE algorithms, while FHE is still under development and will take some time.

Supported algorithms:

  • Additive homomorphic encryption
    • Paillier (recommended)
    • Okamoto–Uchiyama (recommended)
    • EC ElGamal
    • Damgard-Jurik
    • Damgard-Geisler-Krøigaard (DGK)
  • Fully homomorphic encryption
    • Under development and is the current focus of work.

Each algorithm includes a variety of different implementations, and some implementations support hardware accelerators. For more details, please refer to the Document

Compile and install

Environmental requirements

  • CPU
    • x86_64: minimum required AVX instruction set
    • AArch64: ARMv8
  • OS
    • Ubuntu 18.04+
    • Centos 7
    • macOS 11.1+ (macOS Big Sur+)
  • Python
    • Python 3.8+

Install via Pip

pip install sf-heu

Install from source

The following command will automatically compile and install HEU into the default Python environment:

git clone git@github.com:secretflow/heu.git
cd heu
sh build_wheel_entrypoint.sh

Run unit tests (optional)

# just compile, do not run any UT (optional)
bazel build heu/...

# compile and run all UTs
bazel test heu/...

Contribution Guidelines

SecretFlow is an open and inclusive community, and we welcome any kind of contribution. If you want to improve HEU, please refer to Contribution Guide

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

sf_heu-0.5.0.dev20231128-cp38-cp38-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

File details

Details for the file sf_heu-0.5.0.dev20231128-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sf_heu-0.5.0.dev20231128-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a38e3ee33075671577bd2be2e0429b9b57a1b78c13f39879b847786b7cabda8
MD5 d27a7b39e87a7a6acbb5eac73a7d20f6
BLAKE2b-256 eec84ff772b4bfae3231612283ece71773a15e61ea49af010dd19e1d0c6dcad7

See more details on using hashes here.

File details

Details for the file sf_heu-0.5.0.dev20231128-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sf_heu-0.5.0.dev20231128-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d28a7926e09efe9da25f705f23c59cbd2b40a15aadf36c5cedf1cc35f8e68b98
MD5 a6b4d3b64e128538c7f032e5dc0fba28
BLAKE2b-256 2546f7a80ca0ad34d909761925b3a4b2194696be560b337f7a9ec78d076b5aac

See more details on using hashes here.

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