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

A small questions about using dgk #30

Closed
YFMao15 opened this issue Aug 27, 2021 · 1 comment
Closed

A small questions about using dgk #30

YFMao15 opened this issue Aug 27, 2021 · 1 comment

Comments

@YFMao15
Copy link

YFMao15 commented Aug 27, 2021

I am using dgk_encrypt and dgk_decrypt on unsigned long integers, but the decrypted results are usually incorrect. I think I use the functions correctly. Here is the piece of code:

(modulus_bit = 2048, length = 64 in dgk_keygen)
dgk_encrypt_crt(c1, pub_key, priv_key, data);
dgk_decrypt(decrypted, pub_key, priv_key, c1);

Any ideas on why variable data is not equal to decrypted after converting them to unsigned long int?

@YFMao15
Copy link
Author

YFMao15 commented Aug 27, 2021

Thanks for the ideas from previous post (#7).

@YFMao15 YFMao15 closed this as completed Aug 27, 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

1 participant