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

Remove hash work in RsaPaddingProcessor.OpenProcessor. #68553

Merged
merged 2 commits into from Apr 26, 2022

Conversation

vcsjones
Copy link
Member

@vcsjones vcsjones commented Apr 26, 2022

This was hashing data to determine the length of the hash. But we know MD5 is always going to be 16, SHA1 is going to be 20, etc. so don't waste any time hashing anything.

Best reviewed ignoring whitespace.

This was hashing data to determine the length of the hash. But we know MD5 is always going to be 16, SHA1 is going to be 20, etc. so don't waste any time hashing anything.
@ghost
Copy link

ghost commented Apr 26, 2022

Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

This was hashing data to determine the length of the hash. But we know MD5 is always going to be 16, SHA1 is going to be 20, etc. so don't waste any time hashing anything.

Best reviewing ignoring whitespace.

Author: vcsjones
Assignees: vcsjones
Labels:

area-System.Security

Milestone: -

@bartonjs
Copy link
Member

Looks good, except for the build failures 😄.

@vcsjones
Copy link
Member Author

except for the build failures

Picky!

@vcsjones vcsjones merged commit e4163ea into dotnet:main Apr 26, 2022
@vcsjones vcsjones deleted the rsa-padding-processor-no-hash branch April 26, 2022 19:12
@dotnet dotnet locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants