chore: make clippy happy

This commit is contained in:
2022-04-10 22:31:35 +08:00
parent be2e014638
commit 3cf62cb687
6 changed files with 14 additions and 14 deletions

View File

@@ -50,12 +50,12 @@ impl Command for CommandImpl {
};
rust_util::util_msg::when(MessageType::DEBUG, || {
let rsa = keypair.rsa().clone().unwrap();
let rsa = keypair.rsa().unwrap();
let n = rsa.n();
let e = rsa.e();
let m = BigNum::from_slice(&signature).unwrap();
let mut r = BigNum::new().unwrap();
r.mod_exp(&m, &e, &n, &mut BigNumContext::new().unwrap()).unwrap();
r.mod_exp(&m, e, n, &mut BigNumContext::new().unwrap()).unwrap();
debugging!("Signature raw HEX: {}", hex::encode(&r.to_vec()));
});