From 33eac51e922994918c1dbba79c27132f9e50416a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 30 Jan 2019 02:51:14 -0500 Subject: [PATCH] Fix MaxHeaderLength and MaxMessageLength (GH #724) --- chachapoly.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chachapoly.h b/chachapoly.h index f7f3c784..8258fdd3 100644 --- a/chachapoly.h +++ b/chachapoly.h @@ -62,9 +62,9 @@ public: unsigned int DigestSize() const {return 16;} lword MaxHeaderLength() const - {return LWORD_MAX;} + {return W64LIT(18446744073709551615);} // 2^64-1 bytes lword MaxMessageLength() const - {return LWORD_MAX;} + {return W64LIT(274877906880);} // 2^38-1 blocks lword MaxFooterLength() const {return 0;}