The Wayback Machine - https://web.archive.org/web/20201110065355/https://github.com/IBM/fhe-toolkit-linux/issues/59
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

Can anyone give me an example about division of ciphertext with CKKS? #59

Open
chengbao-0 opened this issue Oct 24, 2020 · 3 comments
Open

Comments

@chengbao-0
Copy link

@chengbao-0 chengbao-0 commented Oct 24, 2020

Feature description
Can anyone give me an example about division of ciphertext with CKKS?

I have no idea how to realize it. I tried to use the inverse of multiplication, but I didn't succeed.

Thanks for your help.

@chengbao-0 chengbao-0 changed the title Can anyone give me an example about division of ciphertext with CKKS? I have no idea how to Can anyone give me an example about division of ciphertext with CKKS? Oct 24, 2020
@odellerh
Copy link

@odellerh odellerh commented Nov 3, 2020

Hi chengbao-0,
division between two ciphertexts is not trivial and would incur significant costs to approximate that division.

If you know the divisor, you can perform division by encoding 1/divisor as CKKS plaintext before performing a multByConstant on the ciphertext. Of course, this would leak the divisor.

@chengbao-0 chengbao-0 closed this Nov 3, 2020
@chengbao-0
Copy link
Author

@chengbao-0 chengbao-0 commented Nov 3, 2020

Hi chengbao-0,
division between two ciphertexts is not trivial and would incur significant costs to approximate that division.

If you know the divisor, you can perform division by encoding 1/divisor as CKKS plaintext before performing a multByConstant on the ciphertext. Of course, this would leak the divisor.

@chengbao-0 chengbao-0 reopened this Nov 3, 2020
@chengbao-0
Copy link
Author

@chengbao-0 chengbao-0 commented Nov 3, 2020

I think I understand what you mean. Thank you very much for your help although it's not the answer I want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.