[issue39979] Cannot tune scrypt with large enough parameters

Christian Heimes report at bugs.python.org
Tue Mar 17 17:34:36 EDT 2020


Christian Heimes <lists at cheimes.de> added the comment:

Your parameter selection requires about 64 MB of memory (n * 2 * r * 64).
As documented maxmem=0 defaults to 32 MB of maximum memory in OpenSSL 1.1.x. OpenSSL needs a bit of internal memory for book keeping and other stuff, so you need maxmem=65*1024*1024 for your parameter set.

PyCA cryptography has a default maxmem of sys.maxsize // 2, that's a couple of Exabyte of RAM on a 64bit system.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39979>
_______________________________________


More information about the Python-bugs-list mailing list