Skip to content

Commit 2168ce2

Browse files
Update rsa to latest version
1 parent 25b607e commit 2168ce2

File tree

3 files changed

+31
-49
lines changed

3 files changed

+31
-49
lines changed

Cargo.lock

Lines changed: 29 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ rayon = "1.4.0"
2222
sha2 = "0.10"
2323
hex = "0.4.2"
2424
pgp = "0.10"
25-
rsa = "0.6"
25+
rsa = "0.8"
2626
base64 = "0.13"
2727
chrono = "0.4.19"
2828
git2 = "0.17"

src/github.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ impl Github {
4242
let signature = self
4343
.key
4444
.sign(
45-
rsa::padding::PaddingScheme::PKCS1v15Sign {
46-
hash: Some(rsa::hash::Hash::SHA2_256),
47-
},
45+
rsa::pkcs1v15::Pkcs1v15Sign::new::<sha2::Sha256>(),
4846
&sha2::Sha256::new()
4947
.chain_update(format!(
5048
"{}.{}",

0 commit comments

Comments
 (0)