tlsfuzzer/tlslite-ng

RSA blinding factor may not have an inverse mod n

Open

#426 opened on Oct 18, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (95 forks)auto 404
buggood first issuehelp wanted

Repository metrics

Stars
 (269 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide