keyfork-shard: ah, whitespace, why are you so cruel

This commit is contained in:
Ryan Heywood 2023-11-02 01:12:28 -05:00
parent adad3e5b6b
commit a184c62f42
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 2 additions and 2 deletions

View File

@ -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)