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

RSA Verify Check #634

Merged
merged 1 commit into from
Dec 21, 2023
Merged

RSA Verify Check #634

merged 1 commit into from
Dec 21, 2023

Conversation

ejohnstown
Copy link
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
10 checks passed
@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