feat: fix clippy

This commit is contained in:
2023-11-18 13:39:01 +08:00
parent cda80af731
commit 4b442ff71a
5 changed files with 12 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ impl Command for CommandImpl {
if let Some(sha256_hex) = sha256_hex_opt {
let sha256 = opt_result!(hex::decode(sha256_hex), "Decode sha256 failed: {}");
let raw_in = rsautil::pkcs15_rsa_2048_sign_padding(&sha256);
let raw_in = rsautil::pkcs15_sha256_rsa_2048_padding_for_sign(&sha256);
let sign_result = piv::sign_data(&mut yk, &raw_in, AlgorithmId::Rsa2048, SlotId::Signature);
let sign = opt_result!(sign_result, "Sign data failed: {}");
let sign_bytes = sign.as_slice();