Open mb720 opened 2 years ago
It's because the command-line utility doesn't expand the input buffer past that length:
- Maybe argon2 per se doesn't have that limitation.
Correct, I think argon2 only has a limitation of 4GB (as that's the limit of a 32-bit unsigned integer).
2. What's the reason for limiting input length to 127 bytes.
I assume because it's stored on the stack. In my experience there's a convention to be nice to the stack and stay below ~1KB of usage. I'm sure if the buffer was allocated on the heap it would be able to be much larger. Perhaps you could open a PR to change it.
Hi and thanks for argon2!
Using version 20190702 of argon2, I hit the limit for maximum input length:
Also in argon's source code I can see that the maximum password length is 127.
I was wondering:
Thanks!