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

memory usage in hencel lift #20

Open
uvicorn opened this issue Feb 26, 2024 · 2 comments
Open

memory usage in hencel lift #20

uvicorn opened this issue Feb 26, 2024 · 2 comments

Comments

@uvicorn
Copy link

uvicorn commented Feb 26, 2024

https://github.com/jvdsn/crypto-attacks/blob/master/shared/hensel.py#L33
FIX:

#        roots = list(range(p))
        roots = range(p)

because list(range(big_p)) will use so much memory

@uvicorn
Copy link
Author

uvicorn commented Feb 26, 2024

https://github.com/jvdsn/crypto-attacks/blob/master/shared/hensel.py#L43
same problem. seems need rewrite when polynomial f=0

@jvdsn
Copy link
Owner

jvdsn commented Feb 26, 2024

Why are you using hensel_roots for f=0?

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