Skip to content

Commit

Permalink
fix deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Oct 2, 2023
1 parent 756c701 commit a3e4061
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/kitsune-http-signatures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ impl SigningKey for Ed25519KeyPair {

impl SigningKey for RsaKeyPair {
fn sign(&self, msg: &[u8]) -> Vec<u8> {
let mut signature = vec![0; self.public_modulus_len()];
let mut signature = vec![0; self.public().modulus_len()];
self.sign(&RSA_PKCS1_SHA256, &SystemRandom::new(), msg, &mut signature)
.unwrap();

signature
}
}
Expand Down

0 comments on commit a3e4061

Please sign in to comment.