Skip to content

Commit 8d83f78

Browse files
committed
fixed rsa-sha1 signature
1 parent 1dbf6c0 commit 8d83f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh-key/src/signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ impl Signer<Signature> for (&RsaKeypair, Option<HashAlg>) {
681681

682682
Ok(Signature {
683683
algorithm: Algorithm::Rsa {
684-
hash: Some(HashAlg::Sha512),
684+
hash: self.1,
685685
},
686686
data: data.to_vec(),
687687
})

0 commit comments

Comments
 (0)