Decrease Argon2 maximum output length

Fixes #148.
This commit is contained in:
Olivier Chéron 2017-04-09 17:18:26 +02:00
parent 2d25b27042
commit 112d2fbb15

View File

@ -85,8 +85,10 @@ saltMinLength = 8
outputMinLength :: Int
outputMinLength = 4
-- specification allows up to 2^32-1 but this is too big for a signed Int
-- on a 32-bit architecture, so we limit tag length to 2^31-1 bytes
outputMaxLength :: Int
outputMaxLength = 0xffffffff
outputMaxLength = 0x7fffffff
defaultOptions :: Options
defaultOptions =