Skip to content

BGV/BFV inverse of p mod Q #733

Description

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions