chore: make clippy happy
This commit is contained in:
@@ -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()));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user