[gnutls-devel] [PATCH] Don't call _gnutls_cipher_encrypt2 with textlen = 0 in _gnutls_auth_cipher_encrypt2_tag

Matthias-Christian Ott ott at mirix.org
Tue Dec 30 02:15:02 CET 2014


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 | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Don-t-call-_gnutls_cipher_encrypt2-with-textlen-0-in.patch
Type: text/x-patch
Size: 882 bytes
Desc: not available
URL: </pipermail/attachments/20141230/3c6f1cde/attachment.bin>


More information about the Gnutls-devel mailing list