From lsforman.931 at gmail.com Thu May 14 16:37:12 2020 From: lsforman.931 at gmail.com (Scott Forman) Date: Thu, 14 May 2020 13:37:12 -0700 Subject: [Cryptography-dev] need to upgrade from cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl Message-ID: Hi Crypto Team, We are currently using cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl and I need to upgrade to openssl version 1.1.1. I am not familiar with what cp35-cp35m and manylinux1 mean in the file name, so I am not sure what the matching version is on https://pypi.org/project/cryptography/#files Can you give me any pointers on this? Thanks for your help and great work. Scott Forman scforman at cisco.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From scforman at cisco.com Thu May 14 16:42:44 2020 From: scforman at cisco.com (Scott Forman (scforman)) Date: Thu, 14 May 2020 20:42:44 +0000 Subject: [Cryptography-dev] Need to upgrade from cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl Message-ID: Hi Crypto Team, Sending a second email from my work account to make sure you have a good email to respond to. We are currently using cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl but need to upgrade to openssl 1.1.1. I am not sure what the naming convention is, so am not sure what the corresponding filename is on https://pypi.org/project/cryptography/#files. Can you give me any pointers? Thanks very much. Scott Forman scforman at cisco.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From legorooj at protonmail.com Thu May 14 19:58:06 2020 From: legorooj at protonmail.com (legorooj) Date: Thu, 14 May 2020 23:58:06 +0000 Subject: [Cryptography-dev] need to upgrade from cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl In-Reply-To: References: Message-ID: The following link is the wheel file naming convention. https://www.python.org/dev/peps/pep-0427/#file-name-convention Hope it helps, Legorooj -------- Original Message -------- On 15 May 2020, 06:37, Scott Forman wrote: > Hi Crypto Team, > > We are currently using cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl and I need to upgrade to openssl version 1.1.1. > > I am not familiar with what cp35-cp35m and manylinux1 mean in the file name, so I am not sure what the matching version is on https://pypi.org/project/cryptography/#files > > Can you give me any pointers on this? > > Thanks for your help and great work. > > Scott Forman > > scforman at cisco.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.l.kehrer at gmail.com Thu May 14 20:05:03 2020 From: paul.l.kehrer at gmail.com (Paul Kehrer) Date: Thu, 14 May 2020 19:05:03 -0500 Subject: [Cryptography-dev] Need to upgrade from cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl In-Reply-To: References: Message-ID: Hi Scott, Binary wheels for Python contain tags that provide information about their compatibility. In your case the wheel is Python 3.5 compatible and corresponds to the manylinux1 specification. If you look at our changelog (https://cryptography.io/en/latest/changelog/) you can see that we provide a changelog entry for the version of OpenSSL we ship with a wheel. Any release that doesn't state that OpenSSL has been updated will carry the same version as the previous. 2.1.4 wheels shipped with 1.1.0g statically linked and our latest release (2.9.2) ships with OpenSSL 1.1.1g (the latest OpenSSL). We also now ship abi3 wheels, which allow us to ship a single wheel compatible with multiple Python 3.x releases, so the two wheels that will work for you are the ones tagged cp35-abi3-manylinux1 and cp35-abi3-manylinux2010. There is no meaningful difference between these wheels except that manylinux2010 wheels link against slightly newer libraries and are therefore generally compatible only with Linux distributions using glibc from 2010 or newer. pip is capable of determining compatibility for tags like this automatically so in the future you can determine what OpenSSL version from the changelog and then just use pip to grab the wheel you need. -Paul On Thu, May 14, 2020 at 6:07 PM Scott Forman (scforman) via Cryptography-dev wrote: > > Hi Crypto Team, > > > > Sending a second email from my work account to make sure you have a good email to respond to. > > > > We are currently using cryptography-2.1.4-cp35-cp35m-manylinux1_x86_64.whl but need to upgrade to openssl 1.1.1. > > > > I am not sure what the naming convention is, so am not sure what the corresponding filename is on https://pypi.org/project/cryptography/#files. > > > > Can you give me any pointers? > > > > Thanks very much. > > > > Scott Forman > > scforman at cisco.com > > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev at python.org > https://mail.python.org/mailman/listinfo/cryptography-dev From matthew.tompkin at gmail.com Fri May 15 02:55:55 2020 From: matthew.tompkin at gmail.com (Matt Tompkin) Date: Fri, 15 May 2020 14:55:55 +0800 Subject: [Cryptography-dev] ModuleNotFoundError: No module named 'nacl._sodium' Message-ID: Hi guys I'm using windows / python 3.8 / netmiko to automate some network tests. On implementation, I'm seeing the error: ModuleNotFoundError: No module named 'nacl._sodium' When viewing the error, it leads to crypto_aead.py which is calling : from nacl._sodium import ffi, lib Is there another location I can call this from as the module can't be found currently? Thanks in advance. Matt [image: image.png] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 105915 bytes Desc: not available URL: From paul.l.kehrer at gmail.com Fri May 15 12:47:08 2020 From: paul.l.kehrer at gmail.com (Paul Kehrer) Date: Fri, 15 May 2020 11:47:08 -0500 Subject: [Cryptography-dev] ModuleNotFoundError: No module named 'nacl._sodium' In-Reply-To: References: Message-ID: This looks like a problem with your pynacl installation or pythonpath. Try creating a new virtualenv, install the packages you need, and run the script again. Unfortunately problems like this are highly specific to the way in which you have set up your own Python installation and not anything specific to PyNaCl so it's unlikely that we can provide much further assistance. -Paul On Fri, May 15, 2020 at 7:16 AM Matt Tompkin wrote: > Hi guys > > I'm using windows / python 3.8 / netmiko to automate some network tests. > > On implementation, I'm seeing the error: > ModuleNotFoundError: No module named 'nacl._sodium' > > When viewing the error, it leads to crypto_aead.py which is calling : > from nacl._sodium import ffi, lib > > Is there another location I can call this from as the module can't be > found currently? > > Thanks in advance. > > Matt > > [image: image.png] > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev at python.org > https://mail.python.org/mailman/listinfo/cryptography-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 105915 bytes Desc: not available URL: From legorooj at protonmail.com Fri May 15 20:24:29 2020 From: legorooj at protonmail.com (legorooj) Date: Sat, 16 May 2020 00:24:29 +0000 Subject: [Cryptography-dev] ModuleNotFoundError: No module named 'nacl._sodium' In-Reply-To: References: Message-ID: Matt Go into PyCharm Settings > project interpreter > . You should see a list of packages installed in the environment for that project. If pynacl isn't installed, click the plus button in the top right corner and install it. You could also do this from the command line, like I do, but this is quicker in this case. Legorooj -------- Original Message -------- On 16 May 2020, 02:47, Paul Kehrer wrote: > This looks like a problem with your pynacl installation or pythonpath. Try creating a new virtualenv, install the packages you need, and run the script again. Unfortunately problems like this are highly specific to the way in which you have set up your own Python installation and not anything specific to PyNaCl so it's unlikely that we can provide much further assistance. > > -Paul > > On Fri, May 15, 2020 at 7:16 AM Matt Tompkin wrote: > >> Hi guys >> >> I'm using windows / python 3.8 / netmiko to automate some network tests. >> >> On implementation, I'm seeing the error: >> ModuleNotFoundError: No module named 'nacl._sodium' >> >> When viewing the error, it leads to crypto_aead.py which is calling : >> from nacl._sodium import ffi, lib >> >> Is there another location I can call this from as the module can't be found currently? >> >> Thanks in advance. >> >> Matt >> >> [image.png] >> _______________________________________________ >> Cryptography-dev mailing list >> Cryptography-dev at python.org >> https://mail.python.org/mailman/listinfo/cryptography-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhenukumar at geely.com Thu May 21 21:59:55 2020 From: jhenukumar at geely.com (JHENUKUMAR SUBRAMANIAM) Date: Fri, 22 May 2020 01:59:55 +0000 Subject: [Cryptography-dev] nacl.hashlib.scrypt not working with Nscrypt(n)=32768 Message-ID: <42b6f2db32114c52a542814d6315bf26@geely.com> 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::: [cid:image004.jpg at 01D6301F.BDDC0200] [cid:image001.jpg at 01D573A6.35DA4500] ??JHENU KUMAR SUBRAMANIAM ?????Senior Engineer ?????(??) Lotus Engineering China M: +86 130 6585 7869 | E: jhenukumar at 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 . -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.jpg Type: image/jpeg Size: 83952 bytes Desc: image004.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.jpg Type: image/jpeg Size: 4471 bytes Desc: image005.jpg URL: From paul.l.kehrer at gmail.com Fri May 22 12:48:13 2020 From: paul.l.kehrer at gmail.com (Paul Kehrer) Date: Fri, 22 May 2020 11:48:13 -0500 Subject: [Cryptography-dev] nacl.hashlib.scrypt not working with Nscrypt(n)=32768 In-Reply-To: <42b6f2db32114c52a542814d6315bf26@geely.com> References: <42b6f2db32114c52a542814d6315bf26@geely.com> Message-ID: 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 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 at 01D573A6.35DA4500] > > *??**JHENU KUMAR SUBRAMANIAM* > > ?????Senior Engineer > > *?????**(**??**) Lotus Engineering China* > > M: +86 130 6585 7869 | E: jhenukumar at 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 at python.org > https://mail.python.org/mailman/listinfo/cryptography-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.jpg Type: image/jpeg Size: 83952 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.jpg Type: image/jpeg Size: 4471 bytes Desc: not available URL: