homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.11k stars 761 forks source link

Error while “make Test_AES_x” #333

Open DDDD1000 opened 4 years ago

DDDD1000 commented 4 years ago

Your Contact: Your environment (OS/HW): ubuntu-16.04.6 on VirtualBox-6.0.10 Detailed Description:

Hi, I'm new to HElib. I copied “helib_example.cpp” in “example” folder to “src” folder and successfully compiled it with

$ make helib_example_x

in “src” folder. Then I copied the 6 files in “src/aes” folder to “src” folder and compiled it with

$ make Test_AES_x

But I got the following error:

homAES.cpp: In constructor ‘HomAES::HomAES(const FHEcontext&)’: homAES.cpp:101:83: error: no matching function for call to ‘EncryptedArrayDerived::EncryptedArrayDerived(const FHEcontext&, const NTL::GF2X&, const PAlgebraMod&, DoubleCRT&)’ ES::HomAES(const FHEcontext& context):ea2(context,aesPoly,context.alMod,affVec)

Do I run this example in a wrong way? Thanks!

esteffin commented 4 years ago

Hi, one of the reasons of this issue is that the AES code is not working at the moment.

Also I suggest you to build HElib and BGV_general_example.cpp using the CMake build system as explained the INSTALL.md. This is the standard and supported way of compiling and using HElib.