diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-06-24 14:59:17 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-06-24 17:57:53 +0200 |
commit | f031c7ae99ee0439f83259466d83d83eca912a14 (patch) | |
tree | 45a57e93f7742dce90383e4c3d5ce313c15438ac /openpgp/src/packet/pkesk.rs | |
parent | 0d2e6c904dff8f13fd5f5360da4ff6ef79fca9a8 (diff) |
openpgp: Use SessionKey to protect secrets during ECDH.
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r-- | openpgp/src/packet/pkesk.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs index 40332c45..3a5188a1 100644 --- a/openpgp/src/packet/pkesk.rs +++ b/openpgp/src/packet/pkesk.rs @@ -73,6 +73,7 @@ impl PKESK3 { = session_key.iter().map(|&x| x as usize).sum::<usize>() & 0xffff; psk.push((checksum >> 8) as u8); psk.push((checksum >> 0) as u8); + let psk: SessionKey = psk.into(); #[allow(deprecated)] let esk = match recipient.pk_algo() { |