Skip to content

Fix padding mode precondition in RSAAndroid#57695

Merged
stephentoub merged 1 commit into
dotnet:mainfrom
bartonjs:rsa_android_cleanup
Aug 19, 2021
Merged

Fix padding mode precondition in RSAAndroid#57695
stephentoub merged 1 commit into
dotnet:mainfrom
bartonjs:rsa_android_cleanup

Conversation

@bartonjs

@bartonjs bartonjs commented Aug 18, 2021

Copy link
Copy Markdown
Member

Fixes #57683.

@bartonjs
bartonjs requested a review from jkoritzinsky August 18, 2021 22:03
@ghost ghost added the area-System.Security label Aug 18, 2021
@ghost

ghost commented Aug 18, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: bartonjs
Assignees: -
Labels:

area-System.Security

Milestone: -

@stephentoub stephentoub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny.

@stephentoub
stephentoub merged commit 8444429 into dotnet:main Aug 19, 2021
throw new ArgumentNullException(nameof(padding));
}
if (padding == RSASignaturePadding.Pkcs1 && padding == RSASignaturePadding.Pss)
if (padding != RSASignaturePadding.Pkcs1 && padding != RSASignaturePadding.Pss)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we have tests for this and they're just not yet running on Android? (Or maybe we're scouting them and that's how we found this?)

@bartonjs
bartonjs deleted the rsa_android_cleanup branch August 20, 2021 17:13
@ghost ghost locked as resolved and limited conversation to collaborators Sep 19, 2021
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.

Impossible signature padding conditions in RSAAndroid

4 participants