Skip to content

Commit 61b92c4

Browse files
committed
Fix primes on RSA key conversion
Shoutout to @dignifiedquire for finding the issue
1 parent 6ae2c08 commit 61b92c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh-key/src/private/rsa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl TryFrom<&RsaKeypair> for rsa::RsaPrivateKey {
199199
rsa::BigUint::try_from(&key.private.d)?,
200200
vec![
201201
rsa::BigUint::try_from(&key.private.p)?,
202-
rsa::BigUint::try_from(&key.private.p)?,
202+
rsa::BigUint::try_from(&key.private.q)?,
203203
],
204204
)?;
205205

0 commit comments

Comments
 (0)