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

Ensure signatures have right length and don't overflow #306

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

tarcieri
Copy link
Member

In both the PKCS#1v1.5 and PSS implementations, checks the signature value to ensure it does not overflow the modulus.

In the PKCS#1v1.5 implementation, checks the signature length to ensure it matches the public key size. The PSS implementation was already doing this.

Closes #272

In both the PKCS#1v1.5 and PSS implementations, checks the signature
value to ensure it does not overflow the modulus.

In the PKCS#1v1.5 implementation, checks the signature length to ensure
it matches the public key size. The PSS implementation was already doing
this.

Closes #272
@tarcieri tarcieri merged commit b55c75e into master Apr 25, 2023
9 checks passed
@tarcieri tarcieri deleted the validate-signature-length-and-modulus-overflow branch April 25, 2023 14:36
@tarcieri tarcieri mentioned this pull request Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RSA signatures larger than the modulus are accepted
1 participant