-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
support prehashing in RSA sign #3238
Conversation
@reaperhulk, thanks for your PR! By analyzing the history of the files in this pull request, we identified @alex, @cmurphy and @gorisaka to be potential reviewers. |
It feels like there was a substantial refactoring here, any chance of splitting that out? |
Ready for a rebase now. |
Needs a test for what happens if |
@@ -167,6 +167,25 @@ There is a shortcut to sign sufficiently short messages directly: | |||
... hashes.SHA256() | |||
... ) | |||
|
|||
|
|||
If you have pre-hashed your data you can sign using that as well: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this shouldn't be a part of the primary narrative, since it's relatively obscure. What do you think?
Needs a changelog entry |
Support supplying previously hashed data to the
RSAPrivateKey.sign
method. Support for RSA verification and sign/verify for DSA/ECDSA will come in future PRs.This addresses part of #1648