HElib icon indicating copy to clipboard operation
HElib copied to clipboard

Error while “make Test_AES_x”

Open DDDD1000 opened this issue 6 years ago • 1 comments

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<PA_GF2>::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!

DDDD1000 avatar Dec 15 '19 18:12 DDDD1000

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.

esteffin avatar Dec 20 '19 14:12 esteffin