diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-01-30 02:51:14 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-01-30 02:51:14 -0500 |
commit | 33eac51e922994918c1dbba79c27132f9e50416a (patch) | |
tree | 3b98a1c8f336258ec453913295b10cb50acbe23e /chachapoly.h | |
parent | ebb9593a4be3d920a79fc7bd318cec3170bcbed0 (diff) | |
download | cryptopp-git-33eac51e922994918c1dbba79c27132f9e50416a.tar.gz |
Fix MaxHeaderLength and MaxMessageLength (GH #724)
Diffstat (limited to 'chachapoly.h')
-rw-r--r-- | chachapoly.h | 4 |
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;}
|