keyfork-shard: ah, whitespace, why are you so cruel
This commit is contained in:
parent
adad3e5b6b
commit
a184c62f42
|
@ -180,9 +180,9 @@ impl DecryptionHelper for &mut SmartcardManager {
|
||||||
.decryption()
|
.decryption()
|
||||||
.map(|fp| Fingerprint::from_bytes(fp.as_bytes()));
|
.map(|fp| Fingerprint::from_bytes(fp.as_bytes()));
|
||||||
let pin = self.prompt_pin("Please enter PIN to unlock card")?;
|
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 =
|
let mut decryptor =
|
||||||
user.decryptor(&|| println!("Touch confirmation needed for decryption"))?;
|
user.decryptor(&|| eprintln!("Touch confirmation needed for decryption"))?;
|
||||||
for pkesk in pkesks {
|
for pkesk in pkesks {
|
||||||
if pkesk
|
if pkesk
|
||||||
.decrypt(&mut decryptor, sym_algo)
|
.decrypt(&mut decryptor, sym_algo)
|
||||||
|
|
Loading…
Reference in New Issue