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

Handle diminished RSA signatures. #51

Merged
merged 2 commits into from
Apr 26, 2023
Merged

Handle diminished RSA signatures. #51

merged 2 commits into from
Apr 26, 2023

Conversation

vcsjones
Copy link
Member

If an RSA signature length, in bytes, is less than the RSA modulus length, in bytes, prepend the signature with zeros.

OpenSSH supports diminished RSA signatures where "leading" zeros do not need to be explicitly encoded. This handles RSA signatures similarly to how OpenSSH handles them.

If an RSA signature length, in bytes, is less than the RSA modulus length, in bytes, prepend the signature with zeros.

OpenSSH supports diminished RSA signatures where "leading" zeros do not need to be explicitly encoded. This handles RSA signatures similarly to how OpenSSH handles them.
@vcsjones vcsjones requested a review from a team April 24, 2023 17:18
@vcsjones vcsjones self-assigned this Apr 24, 2023
Copy link

@rei-moo rei-moo left a comment

Choose a reason for hiding this comment

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

Thanks for the walkthrough over zoom! This change looks good to me, especially since it was deployed and tested. 👍

@vcsjones vcsjones merged commit 42b8065 into master Apr 26, 2023
@vcsjones vcsjones deleted the diminished-rsa branch April 26, 2023 18:33
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.

2 participants