Skip to content

BGV/BFV inverse of p mod Q #733

@wahyudierwin

Description

@wahyudierwin

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions