Don't call _gnutls_cipher_encrypt2 with textlen = 0 in _gnutls_auth_cipher_encrypt2_tag
authorMatthias-Christian Ott <ott@mirix.org>
Tue, 30 Dec 2014 09:58:43 +0000 (11:58 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 30 Dec 2014 09:58:43 +0000 (11:58 +0200)
commit9a6f355f2619bf04a2d72c0eca0e8bc9d41cda28
tree445249c680358315328a4b470ff0f35d89c6add4
parent33f4e67e5e9f41190f7e8e5c79e64579f400498d
Don't call _gnutls_cipher_encrypt2 with textlen = 0 in _gnutls_auth_cipher_encrypt2_tag

If the plaintext is shorter than the block size of the used cipher,
_gnutls_auth_cipher_encrypt2_tag calls _gnutls_cipher_encrypt2 with
textlen = 0. By definition _gnutls_cipher_encrypt2 does nothing in this
case and thus does not need to be called.
lib/gnutls_cipher_int.c