mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
7356d6ec50
commit
0131d4369a
3 changed files with 112 additions and 53 deletions
|
@ -232,7 +232,8 @@ void display_online_help( const char *keyword );
|
|||
|
||||
/*-- encode.c --*/
|
||||
int setup_symkey (STRING2KEY **symkey_s2k,DEK **symkey_dek);
|
||||
void encrypt_seskey (DEK *dek, DEK **seskey, byte *enckey);
|
||||
gpg_error_t encrypt_seskey (DEK *dek, DEK **r_seskey,
|
||||
void **r_enckey, size_t *r_enckeylen);
|
||||
int use_aead (pk_list_t pk_list, int algo);
|
||||
int use_mdc (pk_list_t pk_list,int algo);
|
||||
int encrypt_symmetric (const char *filename );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue