diff options
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/decrypt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/decrypt.rs b/tool/src/commands/decrypt.rs index a8c72f96..37e00a9f 100644 --- a/tool/src/commands/decrypt.rs +++ b/tool/src/commands/decrypt.rs @@ -124,7 +124,7 @@ impl<'a> DecryptionHelper for Helper<'a> { if let Some(key) = self.secret_keys.get(&keyid) { if let Some(SecretKey::Unencrypted { .. }) = key.secret() { if let Ok(sk) = key.clone().into_keypair() - .and_then(|mut keypair| pkesks[0].decrypt(&mut keypair)) + .and_then(|mut keypair| pkesk.decrypt(&mut keypair)) .and_then(|(algo, sk)| { decrypt(algo, &sk)?; Ok(sk) }) { if self.dump_session_key { |