Hi,
I have a (perhaps dumb) question. In BGV or BFV, the plaintext modulus is p or p^r and Q represents the ciphertext modulus. Is there any function to compute p^{-1} mod Q? I was looking at try_invert_uint_mod (https://github.com/microsoft/SEAL/blob/main/native/src/seal/util/uintarithmod.cpp#L15) but it only supports uint64 values, while Q can go more than 64-bit.
Thanks!
Hi,
I have a (perhaps dumb) question. In BGV or BFV, the plaintext modulus is
porp^randQrepresents the ciphertext modulus. Is there any function to computep^{-1} mod Q? I was looking attry_invert_uint_mod(https://github.com/microsoft/SEAL/blob/main/native/src/seal/util/uintarithmod.cpp#L15) but it only supports uint64 values, whileQcan go more than 64-bit.Thanks!