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/cipher.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/cipher.c')
| -rw-r--r-- | g10/cipher.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/cipher.c b/g10/cipher.c index b950d0c3f..ad7399dec 100644 --- a/g10/cipher.c +++ b/g10/cipher.c @@ -1,4 +1,4 @@ -/* cipher.c - En-/De-ciphering filter +/* cipher.c - Enciphering filter for the old CFB mode. * Copyright (C) 1998-2003, 2006, 2009 Free Software Foundation, Inc. * Copyright (C) 1998-2003, 2006, 2009, 2017 Werner koch * @@ -117,7 +117,8 @@ write_header (cipher_filter_context_t *cfx, iobuf_t a) * This filter is used to en/de-cipher data with a symmetric algorithm */ int -cipher_filter (void *opaque, int control, iobuf_t a, byte *buf, size_t *ret_len) +cipher_filter_cfb (void *opaque, int control, + iobuf_t a, byte *buf, size_t *ret_len) { cipher_filter_context_t *cfx = opaque; size_t size = *ret_len; @@ -177,7 +178,7 @@ cipher_filter (void *opaque, int control, iobuf_t a, byte *buf, size_t *ret_len) } else if (control == IOBUFCTRL_DESC) { - mem2str (buf, "cipher_filter", *ret_len); + mem2str (buf, "cipher_filter_cfb", *ret_len); } return rc; |
