summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/decrypt-with.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-09-28 14:53:08 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-09-28 14:53:08 +0200
commit17bbe07459ff0affbc9482ab432d51dd0cb91e7b (patch)
tree4c38b9a5b29267a3a7668e1d226374f895fa03c6 /openpgp/examples/decrypt-with.rs
parent67a874462b716c9af52a64946a22f7456b4e1bd6 (diff)
openpgp: Add and use a type holding session keys.
Diffstat (limited to 'openpgp/examples/decrypt-with.rs')
-rw-r--r--openpgp/examples/decrypt-with.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs
index 695bf7af..a8b48d9b 100644
--- a/openpgp/examples/decrypt-with.rs
+++ b/openpgp/examples/decrypt-with.rs
@@ -69,7 +69,7 @@ pub fn main() {
tsk.secret()
{
if let Ok((algo, key)) = pkesk.decrypt(tsk, mpis) {
- let r = pp.decrypt(algo, &key[..]);
+ let r = pp.decrypt(algo, &key);
if r.is_ok() {
state = Some(State::Deciphered);
break;