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

Need fix for core.encrypt.RandomizedIterativeAffine module for combinatory operations #6

Closed
flyingcat047 opened this issue Aug 5, 2021 · 1 comment
Assignees

Comments

@flyingcat047
Copy link
Collaborator

flyingcat047 commented Aug 5, 2021

I found one problem of core.encrypt.RandomizedIterativeAffine module.
When combinatory scalar products and additions are applied to the encrypted objects, the result may turn wrong.
For example, with the inputs below,

p1= 4592.146866155027
p2= 532.2228109095383
k1= 872.0311515320057
k2= -1033.819189454349

the decrypted result of ([p1]*k1)*k2+[p2] is -532.2228107452393
I also tried with other inputs. It seems that the decryption of ([p1]*k1)*k2+[p2] generally gives me the value of -p2

@cyqclark cyqclark mentioned this issue Aug 8, 2021
@cyqclark cyqclark self-assigned this Aug 8, 2021
@cyqclark
Copy link
Owner

cyqclark commented Aug 8, 2021

Thanks for reporting the issue!
We updated code base via pull request #9 and it should solve this problem.

Closing this issue.

@cyqclark cyqclark closed this as completed Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants