Home GnuPG
Diffusion GnuPG 0131d4369a81

gpg: Refactor function encrypt_seskey.

Description

gpg: Refactor function encrypt_seskey.

* g10/encrypt.c (encrypt_seskey): Allocate the buffer for the
encrypted key and returns that buffer and its length.
(encrypt_simple): Adjust for above change.
(write_symkey_enc): Ditto.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 22 2018, 3:50 PM
Parents
rG7356d6ec50ea: gpg: Support EAX if for latest Libgcrypt.
Branches
Unknown
Tags
Unknown