You are passing a maxmem of 2**25, which is 33554432 bytes. Setting n=32768, r=8, p=16 causes it to compute a Blen = p * 128 * r = 16384 and a Vlen = 32 * r * (n + 2) * 4 = 33556480. 33556480 + 16384 = 33572864. Since that is larger than 2**25 it fails. Raise the maxmem limit and this failure will go away.
-Paul On Thu, May 21, 2020 at 9:22 PM JHENUKUMAR SUBRAMANIAM <jhenuku...@geely.com> wrote: > Dear Pynacl Developers, > > > > Set-up details > > Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 > bit (AMD64)] > > Library ::: pynacl (1.14.0) > > Operating System ::: Windows 10 Enterprise Build 16.299 > > Processor ::: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, 2712 Mhz, 2 > Core(s), 4 Logical Processor(s) > > Installed Physical Memory (RAM)::: 16.0 GB > > Graphics :::: NVIDIA Geforce 930MX > > > > Running this command > > *import* nacl*.*hashlib > > z *=* nacl*.*hashlib*.*scrypt*(*b'passphrase'*,*salt*=*b'mysalt'*,*n*=* > 32768*,*r *=*8*,*p*=*16*,*maxmem*=*2****25*,*dklen*=*64*)* > > *#If I chose n = 2**14 it works, but n= 32768 doesn’t work. How to fix it** > ?* > > > > Error Window::: > > > > [image: cid:image001.jpg@01D573A6.35DA4500] > > *苏杰**JHENU KUMAR SUBRAMANIAM* > > 主任工程师Senior Engineer > > *路特斯工程**(**中国**) Lotus Engineering China* > > M: +86 130 6585 7869 | E: jhenuku...@geely.com > > No.918, Binhai 4th Rd, Hangzhou Bay New District, Ningbo, Zhejiang, P. R. > China, 315336 > > 浙江省宁波市杭州湾新区滨海四路918号 邮编:315336 > > > > > > > 免责声明:本邮件所包含信息发给指定个人或机构,邮件可能包含保密或专属信息。未经接收者许可,不得阅读、转发或传播邮件内容,或根据邮件内容采取任何相关行动。如果错误地收到了此邮件,请与收件人联系并自行删除邮件内容。 > > Disclaimer:The information transmitted is intended only for the person or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or other use > of, or taking of any action in reliance upon, this information by persons > or entities other than the intended recipient is prohibited. If you > received this in error , please contact the sender and delete the material > from any computer . > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev@python.org > https://mail.python.org/mailman/listinfo/cryptography-dev >
_______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev