Skip to content

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.

3 participants