Add new control GCRYCTL_GET_TAGLEN for use with gcry_cipher_info.
authorWerner Koch <wk@gnupg.org>
Wed, 23 Mar 2016 14:24:40 +0000 (15:24 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 23 Mar 2016 14:24:40 +0000 (15:24 +0100)
commitfea5971488e049f902d7912df22a945bc755ad6d
tree7a701f928b4684f9b66771acff1889b793ee93c7
parente709d86fe596a4bcf235799468947c13ae657d78
Add new control GCRYCTL_GET_TAGLEN for use with gcry_cipher_info.

* src/gcrypt.h.in (GCRYCTL_GET_TAGLEN): New.
* cipher/cipher.c (_gcry_cipher_info): Add GCRYCTL_GET_TAGLEN feature.

* tests/basic.c (_check_gcm_cipher): Check that new feature.
(_check_poly1305_cipher): Ditto.
(check_ccm_cipher): Ditto.
(do_check_ocb_cipher): Ditto.
(check_ctr_cipher): Add negative test for new feature.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
cipher/cipher.c
doc/gcrypt.texi
src/gcrypt.h.in
tests/basic.c