Update the rsa dependency
This commit is contained in:
parent
0fe5caa557
commit
b860004196
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ futures = { version = "0.3.28", default-features = false }
|
|||
log = { version = "0.4.17", default-features = false }
|
||||
nom = { version = "7.1.3", default-features = false }
|
||||
rand = { version = "0.8.5", default-features = false }
|
||||
rsa = { version = "0.8.2", default-features = false, features = ["sha2", "std"] }
|
||||
rsa = { version = "0.9.0", default-features = false, features = ["sha2", "std"] }
|
||||
sha2 = { version = "0.10.6", default-features = false, features = ["asm"] }
|
||||
sqlx = { version = "0.6.3", default-features = false, features = ["runtime-tokio-native-tls", "macros", "migrate", "sqlite", "time"] }
|
||||
tokio = { version = "1.27.0", default-features = false, features = ["rt-multi-thread", "io-std", "io-util", "macros", "sync", "time", "process"] }
|
||||
|
|
|
@ -54,7 +54,7 @@ impl Algorithm {
|
|||
}
|
||||
Self::Rsa2048Sha256 | Self::Rsa3072Sha256 | Self::Rsa4096Sha256 => {
|
||||
let private_key = RsaPrivateKey::from_pkcs8_der(&pk)?;
|
||||
let signing_key = RsaSigningKey::<Sha256>::new_with_prefix(private_key);
|
||||
let signing_key = RsaSigningKey::<Sha256>::new(private_key);
|
||||
let signature = signing_key.sign_prehash(data)?;
|
||||
Ok(signature.to_vec())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue