Skip to content

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 ghost assigned vcsjones Apr 26, 2022
@ghost ghost added the area-System.Security label Apr 26, 2022
@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
@ghost ghost 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.

3 participants