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

endless loop #3

Open
qiuxiangdong opened this issue Jul 18, 2018 · 1 comment
Open

endless loop #3

qiuxiangdong opened this issue Jul 18, 2018 · 1 comment

Comments

@qiuxiangdong
Copy link

Hi, thanks for your work of this open source project! :) I am trying to use your code on some project and is stuck by a problem. The following are the parameters I used to test the program.

this.inRange = new ValueRange(BigInteger.ZERO, new BigInteger("2").pow(40));
this.outRange = new ValueRange(BigInteger.ZERO, new BigInteger("2").pow(41));
this.key = "key11"

The plaintext is new BigInteger("948980387264"); then the program enters into an endless while loop
of function hypergeometricHyp.

I checked the values within in the function and found this happened when Y = 1, inner = 0 and K = 0. K = 0, K -- will make it never run the break. And inner = 0, then Y will always be larger than 0.

Did you know how to fix this issue? Your help will be appreciated very much!

@ssavvides
Copy link
Owner

Hello, unfortunately, I don't maintain this repo anymore, but this implementation is based on a python implementation here: https://github.com/tonyo/pyope which might be helpful

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

2 participants