diff --git a/keyfork-shard/src/openpgp/smartcard.rs b/keyfork-shard/src/openpgp/smartcard.rs index 0f561e0..a26aeff 100644 --- a/keyfork-shard/src/openpgp/smartcard.rs +++ b/keyfork-shard/src/openpgp/smartcard.rs @@ -180,9 +180,9 @@ impl DecryptionHelper for &mut SmartcardManager { .decryption() .map(|fp| Fingerprint::from_bytes(fp.as_bytes())); let pin = self.prompt_pin("Please enter PIN to unlock card")?; - let mut user = transaction.to_user_card(pin.as_str())?; + let mut user = transaction.to_user_card(pin.as_str().trim())?; let mut decryptor = - user.decryptor(&|| println!("Touch confirmation needed for decryption"))?; + user.decryptor(&|| eprintln!("Touch confirmation needed for decryption"))?; for pkesk in pkesks { if pkesk .decrypt(&mut decryptor, sym_algo)