diff options
author | Werner Koch <[email protected]> | 2018-01-10 16:33:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-01-10 16:33:50 +0000 |
commit | 81d71818d054a5faa9153fd52a4b79bbbb71e9d5 (patch) | |
tree | cd62338a213ae45861d4db23be7bee638aed85ed /g10/sign.c | |
parent | gpg: New option --force-aead (diff) | |
download | gnupg-81d71818d054a5faa9153fd52a4b79bbbb71e9d5.tar.gz gnupg-81d71818d054a5faa9153fd52a4b79bbbb71e9d5.zip |
gpg: Add stub function for encrypting AEAD.
* g10/cipher.c (cipher_filter): Rename to cipher_filter_cfb.
* g10/cipher-aead.c: New. Right now only with a stub function.
* g10/Makefile.am (gpg_sources): Add file.
* g10/encrypt.c (encrypt_simple): Push either cipher_filter_cfb or
cipher_filter_aead.
(encrypt_crypt): Ditto.
(encrypt_filter): Ditto.
* g10/sign.c (sign_symencrypt_file): Ditto.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/sign.c')
-rw-r--r-- | g10/sign.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c index f8a1241a6..051ab594d 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -1379,7 +1379,10 @@ sign_symencrypt_file (ctrl_t ctrl, const char *fname, strlist_t locusr) } /* Push the encryption filter */ - iobuf_push_filter( out, cipher_filter, &cfx ); + iobuf_push_filter (out, + cfx.dek->use_aead? cipher_filter_aead + /**/ : cipher_filter_cfb, + &cfx); /* Push the compress filter */ if (default_compress_algo()) |