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

3072-bit key reaches the limit of integer for some cryptosystems #23

Closed
serengil opened this issue May 29, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@serengil
Copy link
Owner

serengil commented May 29, 2024

ElGamal

import decimal
# g = random.randint(2, int(math.sqrt(p)))
g = int(random.uniform(2, float(decimal.Decimal(p).sqrt())))

Goldwasser

if (
                pow(xp, int((p - 1) // 2), p) == 1
                and pow(xq, int((q - 1) // 2), q) == 1
            ):
@serengil serengil added the bug Something isn't working label May 29, 2024
@serengil serengil changed the title ElGamal with 3072-bit key reaches the limit of integer 3072-bit key reaches the limit of integer for some cryptosystems May 29, 2024
@serengil
Copy link
Owner Author

Done in PR - #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant