Skip to content

RSA Verify Check#634

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
ejohnstown:rsa-check
Dec 21, 2023
Merged

RSA Verify Check#634
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
ejohnstown:rsa-check

Conversation

@ejohnstown
Copy link
Copy Markdown
Contributor

  1. Added function wolfSSH_RsaVerify() which verifies the provided RSA signature with the provided key.
  2. Call wolfSSH_RsaVerify() after all calls to wc_RsaSSL_Sign().
  3. Changed a comparison between an unsigned and 0 to == from <=.

This fixes a potential but unconfirmed vulnerability in wolfSSH described in the paper "Passive SSH Key Compromise via Lattices" by Keegan Ryan, et al, at UCSD.

1. Added function wolfSSH_RsaVerify() which verifies the provided
   RSA signature with the provided key.
2. Call wolfSSH_RsaVerify() after all calls to wc_RsaSSL_Sign().
3. Changed a comparison between an unsigned and 0 to == from <=.
4. Fixed a spot where we still tried to sign a digest when the call
   to wc_DigestFinal() failed.
@JacobBarthelmeh JacobBarthelmeh merged commit 7f5f929 into wolfSSL:master Dec 21, 2023
@ejohnstown ejohnstown deleted the rsa-check branch December 21, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants