summaryrefslogtreecommitdiff
path: root/chachapoly.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-01-30 02:51:14 -0500
committerJeffrey Walton <noloader@gmail.com>2019-01-30 02:51:14 -0500
commit33eac51e922994918c1dbba79c27132f9e50416a (patch)
tree3b98a1c8f336258ec453913295b10cb50acbe23e /chachapoly.h
parentebb9593a4be3d920a79fc7bd318cec3170bcbed0 (diff)
downloadcryptopp-git-33eac51e922994918c1dbba79c27132f9e50416a.tar.gz
Fix MaxHeaderLength and MaxMessageLength (GH #724)
Diffstat (limited to 'chachapoly.h')
-rw-r--r--chachapoly.h4
1 files 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;}