Huelse / HEAAN-Python

HEAAN lib binds for Python
MIT License
32 stars 7 forks source link
encryption heaan heaan-lib heaan-python homomorphic-encryption python

PYHEAAN

This is a Python wrapper for HEAAN library.

HEAAN is a software library that implements homomorphic encryption (HE) that supports fixed point arithmetics. This library supports approximate operations between rational numbers. The approximate error depends on some parameters and almost same with floating point operation errors. The scheme in this library is on the paper.

Build

Test

make sure you already installed the library globally or the file HEAAN.cpython-<version>.so in the current directory.

python3 test.py

FAQ

  1. ImportError: libntl.so.43: cannot find

    • export LD_LIBRARY_PATH=/path/to/extends/lib

    • add the /path/to/extends/lib to /etc/ld.so.conf and refresh it sudo ldconfig

    • install the NTL and gmp in /usr/local as default

  2. MakeError: /usr/bin/ld: cannot find libntl.so or libHEAAN.a

    Change to absolute path.

About

This lib is still in the experimental stage.

If any problems, email or Issue.

Email: huelse@oini.top.

Contributing