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

rare hang in both noham and ham versions #57

Open
bhuff36 opened this issue Jun 11, 2023 · 0 comments
Open

rare hang in both noham and ham versions #57

bhuff36 opened this issue Jun 11, 2023 · 0 comments

Comments

@bhuff36
Copy link

bhuff36 commented Jun 11, 2023

I've added a "test" that attempts to run a billion iterations of encryption followed by decryption:

https://gist.github.com/bhuff36/788646b453a1dc4abcf4ee03facda3c8

Every few iterations, it prints the remaining number of iterations.

After a while this is observed to "hang", meaning that the library gets "stuck" in one of the encryption or decryption calls, while consuming all available (single-threaded) CPU time.

This happens for both noham and ham versions.

I believe this is indicative of a bug in libntru.

The host platform I attempted to run libntru on is x86_64.

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