summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-06-02 21:23:41 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-06-14 16:30:45 +0200
commitaa54b849c102e9cc433201f849f1e8ad029a9a80 (patch)
tree45adc19bc1836ed8fe67cbcc90078b4685cad806
parentcc5c1553d44b68f99e58d13f988fff16ef4ab460 (diff)
downloadgnutls-aa54b849c102e9cc433201f849f1e8ad029a9a80.tar.gz
MAX_CIPHER_BLOCK_SIZE: increased to 64-bytes for CHACHA20
This was not necessary since that value was only used by block (in TLS sense) ciphers, but that definition could also be used for the CHACHA20. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--lib/gnutls_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 0db05af163..bc0025db30 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -122,7 +122,7 @@ typedef struct {
#define MAX_MAC_KEY_SIZE 64
-#define MAX_CIPHER_BLOCK_SIZE 16
+#define MAX_CIPHER_BLOCK_SIZE 64 /* CHACHA20 */
#define MAX_CIPHER_KEY_SIZE 32
#define MAX_CIPHER_IV_SIZE 16