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

RSA blinding factor may not have an inverse mod n #426

Open
tomato42 opened this issue Oct 18, 2020 · 0 comments
Open

RSA blinding factor may not have an inverse mod n #426

tomato42 opened this issue Oct 18, 2020 · 0 comments
Labels
bug unintented behaviour in tlslite-ng code good first issue relatively simple changes, good for first time contributors help wanted

Comments

@tomato42
Copy link
Member

tomato42 commented Oct 18, 2020

In RSA code we generate a blinding factor as simple integer mod n:
https://github.com/tomato42/tlslite-ng/blob/9951ec1c769617247a80aa1cae661ec0edc68823/tlslite/utils/python_rsakey.py#L65-L70

we should verify that it's relatively prime to n (by calculating gcd() and checking if it is 1) before using it.

@tomato42 tomato42 added bug unintented behaviour in tlslite-ng code help wanted good first issue relatively simple changes, good for first time contributors labels Oct 18, 2020
@tomato42 tomato42 added this to the someday/future milestone Oct 18, 2020
@tomato42 tomato42 changed the title RSA blinding factor may not have an inverse mod m RSA blinding factor may not have an inverse mod n Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unintented behaviour in tlslite-ng code good first issue relatively simple changes, good for first time contributors help wanted
Projects
None yet
Development

No branches or pull requests

1 participant