diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-29 16:22:16 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-29 16:22:16 +0200 |
commit | fc8c2bf60193c9c4d9bc58898fce3d335558daae (patch) | |
tree | 3ec36df22b6101e4094a86da3422ea5cb301e18b /lib | |
parent | ab9a13d2e496b6ce04e655afc03b355903f09fc0 (diff) | |
download | gnutls-fc8c2bf60193c9c4d9bc58898fce3d335558daae.tar.gz |
corrected overhead calculation in AEAD ciphers.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_dtls.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gnutls_dtls.c b/lib/gnutls_dtls.c index 754c97277b..009b63cd2d 100644 --- a/lib/gnutls_dtls.c +++ b/lib/gnutls_dtls.c @@ -601,9 +601,7 @@ int t, ret; if (mac->id == GNUTLS_MAC_AEAD) { - t = _gnutls_cipher_get_iv_size(cipher); - total += t; - + total += AEAD_EXPLICIT_DATA_SIZE; total += _gnutls_cipher_get_tag_size(cipher); } else |