security/py-pycrypto: sync with upstream

Taken from: FreeBSD
This commit is contained in:
Franco Fichtner 2022-03-28 12:45:15 +02:00
parent 75c3cedbef
commit 802e7833bd
3 changed files with 1336 additions and 7 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
--- ./lib/Crypto/SelfTest/Util/test_number.py.orig 2012-10-03 16:03:52.000000000 +1000
+++ ./lib/Crypto/SelfTest/Util/test_number.py 2012-10-03 16:04:01.000000000 +1000
@@ -276,6 +276,11 @@
--- lib/Crypto/SelfTest/Util/test_number.py.orig 2013-10-14 21:38:10 UTC
+++ lib/Crypto/SelfTest/Util/test_number.py
@@ -276,6 +276,11 @@ class MiscTests(unittest.TestCase):
self.assertEqual(number.size(0xa2ba40),8*3)
self.assertEqual(number.size(0xa2ba40ee07e3b2bd2f02ce227f36a195024486e49c19cb41bbbdfbba98b22b0e577c2eeaffa20d883a76e65e394c69d4b3c05a1e8fadda27edb2a42bc000fe888b9b32c22d15add0cd76b3e7936e19955b220dd17d4ea904b1ec102b2e4de7751222aa99151024c7cb41cc5ea21d00eeb41f7c800834d2c6e06bce3bce7ea9a5L), 1024)
@ -12,7 +12,7 @@
def test_negative_number_roundtrip_mpzToLongObj_longObjToMPZ(self):
"""Test that mpzToLongObj and longObjToMPZ (internal functions) roundtrip negative numbers correctly."""
n = -100000000000000000000000000000000000L
@@ -286,7 +291,21 @@
@@ -286,7 +291,21 @@ class MiscTests(unittest.TestCase):
def get_tests(config={}):
from Crypto.SelfTest.st_common import list_test_cases

View file

@ -1,6 +1,6 @@
--- ./setup.py.orig 2012-10-03 15:57:50.000000000 +1000
+++ ./setup.py 2012-10-03 15:57:50.000000000 +1000
@@ -136,6 +136,7 @@
--- setup.py.orig 2013-10-14 21:38:10 UTC
+++ setup.py
@@ -136,6 +136,7 @@ class PCTBuildExt (build_ext):
# especially helps the DES modules.
self.__add_compiler_option("-O3")
self.__add_compiler_option("-fomit-frame-pointer")