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/filter.h | |
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/filter.h')
-rw-r--r-- | g10/filter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/g10/filter.h b/g10/filter.h index 9e4b1e538..29243556e 100644 --- a/g10/filter.h +++ b/g10/filter.h @@ -145,8 +145,12 @@ void push_compress_filter2(iobuf_t out,compress_filter_context_t *zfx, int algo,int rel); /*-- cipher.c --*/ -int cipher_filter( void *opaque, int control, - iobuf_t chain, byte *buf, size_t *ret_len); +int cipher_filter_cfb (void *opaque, int control, + iobuf_t chain, byte *buf, size_t *ret_len); + +/*-- cipher-aead.c --*/ +int cipher_filter_aead (void *opaque, int control, + iobuf_t chain, byte *buf, size_t *ret_len); /*-- textfilter.c --*/ int text_filter( void *opaque, int control, |