-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Fix improper RSA key conversion from ssh_key
crate
#400
Conversation
`rsa` 0.9.7 introduces an error when using a key to sign (likely due to overeager validation during conversion). You can see the changes here: https://diff.rs/rsa/0.9.6/0.9.7/ This commit fixes the version back to 0.9.6 as a quick fix, although this may not be the desired solution.
Tracking issue: RustCrypto/RSA#463 |
7478fd6
to
9805a7e
Compare
This solves signatures not working in the current version of russh_keys, which were previously incorrect due to an upstream bug (see RustCrypto/SSH#318)
9805a7e
to
263f6c7
Compare
I've updated this with a proper workaround while RustCrypto/SSH#318 is not merged. It turns out that the issue is in |
ssh_key
crate
Thank you for investigating this! |
@@ -26,7 +26,7 @@ futures = "0.3" | |||
hmac = "0.12" | |||
log = "0.4" | |||
rand = "0.8" | |||
rsa = "0.9" | |||
rsa = "=0.9.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend not pinning to 0.9.6
to make sure this issue doesn't occur in other code paths, given that you have a workaround now
rsa
0.9.7 introduces an error when using a key to sign (likely due to overeager validation during conversion). You can see the changes here: https://diff.rs/rsa/0.9.6/0.9.7/This commit fixes the version back to 0.9.6 as a quick fix, although this may not be the desired solution.