You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function in uintarithmod.cpp supports integers modulo a multi-word modulus. There are some overloads that are for single-word moduli, and in fact they are used (almost) always. Actually, I'm not sure if the multi-word function you mentioned is used at all, because everything is done in CRT representation.
So, I'm not really sure what your question is. The function you pointed out takes uint64_count (the word count) as a parameter.
Activity
kimlaine commentedon Nov 17, 2025
The function in
uintarithmod.cppsupports integers modulo a multi-word modulus. There are some overloads that are for single-word moduli, and in fact they are used (almost) always. Actually, I'm not sure if the multi-word function you mentioned is used at all, because everything is done in CRT representation.So, I'm not really sure what your question is. The function you pointed out takes
uint64_count(the word count) as a parameter.wahyudierwin commentedon Nov 17, 2025
Thanks for your response, Kim Laine (@kimlaine) . I just realized my question is ambiguous and confusing, my bad.
What I'm looking for is the
ctxt.divideByP()function similar to HElib (https://github.com/homenc/HElib/blob/master/src/Ctxt.cpp#L2415). Is there any such function in SEAL?