Commit 74e5a25e authored by Yuriy Polyakov's avatar Yuriy Polyakov Committed by Jerry Ryan

bug fix in packed encoding

parent c80f0535
......@@ -84,7 +84,8 @@ bool PackedEncoding::Encode() {
for (size_t i = 1; i < nativeParams.size(); i++ ) {
NativePoly temp(firstElement);
temp.SwitchModulus(nativeParams[i]->GetModulus(),nativeParams[i]->GetRootOfUnity());
temp.SwitchModulus(nativeParams[i]->GetModulus(),nativeParams[i]->GetRootOfUnity(),
nativeParams[i]->GetBigModulus(),nativeParams[i]->GetBigRootOfUnity());
this->encodedVectorDCRT.SetElementAtIndex(i,temp);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment