Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "trivial encryption" #1431

Open
AlexanderViand-Intel opened this issue Feb 19, 2025 · 0 comments
Open

Support "trivial encryption" #1431

AlexanderViand-Intel opened this issue Feb 19, 2025 · 0 comments
Labels
dialect: lwe Issues about the LWE dialect

Comments

@AlexanderViand-Intel
Copy link
Collaborator

AlexanderViand-Intel commented Feb 19, 2025

#1409 "moved final computations outside of the loop to be before the loop, so that the iter_arg of the loop can be a ciphertext type to match with the yielded ciphertext type."

In the future, we might get issues like this that can't be worked around by changing the computation.
In those cases, we could consider adding a trivial encryption operation that acts like a "cast" of the ptxt to a ctxt of a given order. IIRC, we can actually realize/lower this by just padding with zero polynomials., e.g., a plaintext polynomial p would become order-2 ctxt (0,p) decrypting to p - 0*s = p.

@AlexanderViand-Intel AlexanderViand-Intel added the dialect: lwe Issues about the LWE dialect label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialect: lwe Issues about the LWE dialect
Projects
None yet
Development

No branches or pull requests

1 participant