cipher: Check length of supplied tag in _gcry_cipher_poly1305_check_tag.
authorWerner Koch <wk@gnupg.org>
Wed, 23 Mar 2016 11:47:30 +0000 (12:47 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 23 Mar 2016 11:47:30 +0000 (12:47 +0100)
commit7c9c82feecf94a455c66d9c38576f36c9c4b484c
tree86063050e2feb83846ea822b91c60cac32b8c406
parent6821e1bd94969106a70e3de17b86f6e6181f4e59
cipher: Check length of supplied tag in _gcry_cipher_poly1305_check_tag.

* cipher/cipher-poly1305.c (_gcry_cipher_poly1305_tag): Check that the
provided tag length matches the actual tag length.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/cipher-poly1305.c