-
Notifications
You must be signed in to change notification settings - Fork 19
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
A possible problem in the implementation of DGK? #7
Comments
Thanks for reporting this issue and providing this example. I can confirm that there is a problem. We will look into this soon and post updates here. |
After having looked at the code again, I remembered that the We have worked around that problem in Eventually the testing for good keys will be moved to the |
OK, thanks! As a temporary solution, I just encrypt/decrypt 1 and re-generate the key pair until it does it correctly. |
I guess it's better to run this test with random values and several iterations and then testing an encryption of 1 on top. Also, keep in mind that this code is definitely not intended for anything in production. There might be bugs and it's certainly not side-channel free. |
I have trouble using the implementation of the DGK encryption protocol. Here is a snippet that does not work:
A typical output (which, of course, depends on the randomness used for the key generation) is:
It seems that instead of outputting
1
, the decryption algorithm outputs2^66 - 2
.The text was updated successfully, but these errors were encountered: