Skip to content

Commit

Permalink
Changed Hamming weight from 16 to 64 for SPARSE_TERNARY (#312)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitriy Suponitskiy <dsuponitskiy@dualitytech.com>
  • Loading branch information
dsuponitskiy and dsuponitskiy-duality authored Feb 27, 2023
1 parent 90f63a1 commit 3bf9353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pke/lib/schemebase/base-pke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ KeyPair<Element> PKEBase<Element>::KeyGen(CryptoContext<Element> cc, bool makeSp
s = Element(tug, paramsPK, Format::EVALUATION);
break;
case SPARSE_TERNARY:
s = Element(tug, paramsPK, Format::EVALUATION, 16);
// https://github.com/openfheorg/openfhe-development/issues/311
s = Element(tug, paramsPK, Format::EVALUATION, 64);
break;
default:
break;
Expand Down

0 comments on commit 3bf9353

Please # to comment.