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 760 forks source link

Invalid argument: sig->getDim(dim) must equal reps.length() #452

Open virtualvineet opened 2 years ago

virtualvineet commented 2 years ago

All, I am getting following error. I have used thickboot or thinboot both. I get similar error.

terminate called after throwing an instance of 'helib::LogicError' what(): Invalid argument: sig->getDim(dim) must equal reps.length()

here is my configuration parameters

long p  = 2;
 long m = 32767;
// Hensel lifting (default = 1)
long r = 1;
// Number of bits of the modulus chain
long bits =  1000;
// Number of columns of Key-Switching matrix (default = 2 or 3)
 long c = 2;
std::vector<long> mvec =  {7,31,151} ;    
// Generating set of Zm* group.
std::vector<long> gens = { 11628, 28087, 25824 };
// Orders of the previous generators.
std::vector<long> ords =  { 30,6,10   };
virtualvineet commented 2 years ago

thin boot gives me following error terminate called after throwing an instance of 'helib::LogicError' what(): Invalid argument: sig and reps have inconsistent dimension