[issue39979] Cannot tune scrypt with large enough parameters

2020-03-18 Thread Christian Heimes
Christian Heimes added the comment: PS: You are getting a different output because you are feeding a different input to hashlib.scrypt(). The first parameter is the password, not password + salt. -- ___ Python tracker

[issue39979] Cannot tune scrypt with large enough parameters

2020-03-18 Thread Gle
Gle added the comment: Alright, I understand the difference in behaviour now. Thanks a lot for the clear explanation ! Would be nice to have something like: """maxmem must be greater than (n * 2 * r * 64) plus a bit of internal memory for OpenSSL book keeping. Basically, set maxmem = (n

[issue39979] Cannot tune scrypt with large enough parameters

2020-03-17 Thread Christian Heimes
Christian Heimes 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 f

[issue39979] Cannot tune scrypt with large enough parameters

2020-03-16 Thread Gle
New submission from Gle : I can use scrypt KDF with the cryptography module https://cryptography.io/en/latest/hazmat/primitives/key-derivation-functions/#cryptography.hazmat.primitives.kdf.scrypt.Scrypt with large parameters (n=2**20, r=16, p=1) On the other hand, using scrypt KDF from hashlib