remove old pycryptodome

This commit is contained in:
2022-03-19 22:52:44 +01:00
committed by Andreas Billmeier
parent bda9d6b691
commit ad7bebaddd
7 changed files with 3 additions and 187 deletions

View File

@@ -1,7 +0,0 @@
AUX pycryptodome-3.9.4-parallel-make.patch 756 BLAKE2B 06a79eff056ecb983131838287563d4d60896f27e28d5c2534f4ab008e50017694ac9355b43f8f387cc29abfd21ffd648233c3dbae33a06fcedb12a6c7e11e80 SHA512 06b42ea780bd374cf5cb5d6cef3fade5d695c1ee0d765e2659408da7645ad311eef2028f17d8ec0289d49c3a5851b4c63503d7c922de15873dbbf16d0db58b08
AUX pycryptodome-3.9.4-tests.patch 2201 BLAKE2B 93bad5e716c968c1d1b765c0506f5e46680d3f1b71a89e6b6cc17c73475ca44433f75f03661bb5bb32905a9898c10ab13167e883a5240d08e540c6bf5adcc06a SHA512 8154064bcda7a4d7d9e87be09f1ecfdc1a7553b9fc82d7f9c7c9c12cef216d856d6135925c0cca64708e5f3f8009be27a97405ca7d31945af89248f77a0b8f5f
DIST pycryptodome-3.9.6.tar.gz 15451600 BLAKE2B 4eea059413ca09944fd234693c83a9c559ddbc3ca2d2d26b27f5df96925b20202621608737bf2d930ba63e3d0518da6e25a172a7097139cf859e224186615884 SHA512 c1fc4dc9e993d77c6928d0accdddafb4de4157a6db8a4c0f81fa7eb75a529a1cff04db77ff0d926a29030c98549329143b4bb2bbf198ef8811d7fee9803a8f2a
DIST pycryptodome-3.9.8.tar.gz 15633268 BLAKE2B 8c4f8d4839be0fb09556677514ee6c7f832684f20eb4e355cee87eb5b52a5c09e12712c1865ff89fb5dd6c628ca027374c7cab8a2287aafa4eecedf1095f1a12 SHA512 894e763720df284804fd686d5805980853b86773bb3097bf03d929818b9944e5a257e47414275f302966864751e50ae34dea19ad749910f1ceac31833a53ef7c
EBUILD pycryptodome-3.9.6.ebuild 1314 BLAKE2B e0e04df8c0f02311ae2311fc8adb6ba3eafefc1ff584b970396daf4d306214bd77095ec1f26173b04770b82bfb43e90408d203d9f83bd2c3fc9731411d03bb33 SHA512 ae5739a3686d9809c8dac80fce84b0e152758ddedb824c2f3ed05c75e5f7e86de9b09e925104d29ce4dec0acdcc6460088623afc6f90c9eafe947ae18054457c
EBUILD pycryptodome-3.9.8.ebuild 1314 BLAKE2B e0e04df8c0f02311ae2311fc8adb6ba3eafefc1ff584b970396daf4d306214bd77095ec1f26173b04770b82bfb43e90408d203d9f83bd2c3fc9731411d03bb33 SHA512 ae5739a3686d9809c8dac80fce84b0e152758ddedb824c2f3ed05c75e5f7e86de9b09e925104d29ce4dec0acdcc6460088623afc6f90c9eafe947ae18054457c
MISC metadata.xml 455 BLAKE2B 85d76bc452c28d7776686cb0c904b8d12f383110b29219e97a88e3f913c3b1605d917d84df20f94787b6b6ebbad99f5a3f5970e8983f90fcc83512fa98a2c03a SHA512 bf7e03d29b8a17f2c8b6b5524183f965ca21c9218cf6ec5fa64ce850f11a7ac7a628c5b43b8919867fdaf94892444acc28ed292bb68339b3e5c433434e608b36

View File

@@ -1,22 +0,0 @@
diff --git a/setup.py b/setup.py
index 1d70caad..c72f64ff 100644
--- a/setup.py
+++ b/setup.py
@@ -364,7 +364,7 @@ ext_modules = [
Extension("Crypto.Cipher._raw_eksblowfish",
include_dirs=['src/'],
define_macros=[('EKS',None),],
- sources=["src/blowfish.c"]),
+ sources=["src/blowfish_eks.c"]),
Extension("Crypto.Cipher._raw_cast",
include_dirs=['src/'],
sources=["src/CAST.c"]),
@@ -427,7 +427,7 @@ ext_modules = [
# Math
Extension("Crypto.Math._modexp",
include_dirs=['src/'],
- sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont.c'],
+ sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont_math.c'],
),
]

View File

@@ -1,48 +0,0 @@
diff --git a/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py b/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py
index a2109891..44d2e532 100644
--- a/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py
+++ b/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py
@@ -626,6 +626,7 @@ class TestVectorsWycheproof(unittest.TestCase):
def __init__(self, wycheproof_warnings):
unittest.TestCase.__init__(self)
self._wycheproof_warnings = wycheproof_warnings
+ self._id = "None"
def setUp(self):
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")
diff --git a/lib/Crypto/SelfTest/Cipher/test_EAX.py b/lib/Crypto/SelfTest/Cipher/test_EAX.py
index cdd0e85a..546186d1 100644
--- a/lib/Crypto/SelfTest/Cipher/test_EAX.py
+++ b/lib/Crypto/SelfTest/Cipher/test_EAX.py
@@ -656,6 +656,7 @@ class TestVectorsWycheproof(unittest.TestCase):
def __init__(self, wycheproof_warnings):
unittest.TestCase.__init__(self)
self._wycheproof_warnings = wycheproof_warnings
+ self._id = "None"
def setUp(self):
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")
diff --git a/lib/Crypto/SelfTest/Cipher/test_GCM.py b/lib/Crypto/SelfTest/Cipher/test_GCM.py
index e3a7a3da..71ea0d18 100644
--- a/lib/Crypto/SelfTest/Cipher/test_GCM.py
+++ b/lib/Crypto/SelfTest/Cipher/test_GCM.py
@@ -828,6 +828,7 @@ class TestVectorsWycheproof(unittest.TestCase):
unittest.TestCase.__init__(self)
self._wycheproof_warnings = wycheproof_warnings
self._extra_params = extra_params
+ self._id = "None"
def setUp(self):
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")
diff --git a/lib/Crypto/SelfTest/Cipher/test_SIV.py b/lib/Crypto/SelfTest/Cipher/test_SIV.py
index 38341e14..ab588adc 100644
--- a/lib/Crypto/SelfTest/Cipher/test_SIV.py
+++ b/lib/Crypto/SelfTest/Cipher/test_SIV.py
@@ -456,6 +456,7 @@ class TestVectorsWycheproof(unittest.TestCase):
def __init__(self):
unittest.TestCase.__init__(self)
+ self._id = "None"
def setUp(self):
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")

View File

@@ -1,15 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">pycryptodome</remote-id>
<maintainer status="unknown">
<email>helderijs@gmail.com</email>
<name>Helder Eijs</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@@ -1,46 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
DESCRIPTION="A self-contained cryptographic library for Python"
HOMEPAGE="https://www.pycryptodome.org https://github.com/Legrandin/pycryptodome https://pypi.org/project/pycryptodome/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="|| ( BSD-2 Unlicense )"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND="dev-libs/gmp:0
virtual/python-cffi[${PYTHON_USEDEP}]
!dev-python/pycrypto"
BDEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
PATCHES=(
"${FILESDIR}/pycryptodome-3.9.4-parallel-make.patch"
# https://github.com/Legrandin/pycryptodome/pull/351
#"${FILESDIR}/pycryptodome-3.9.4-tests.patch"
)
python_prepare_all() {
# parallel make fixes
# Multiple targets were compiling the same file, setuptools doesn't
# understand this and you get race conditions where a file gets
# overwritten while it's linking. This makes the files look like separate
# files so this race won't happen
ln src/blowfish.c src/blowfish_eks.c || die
ln src/mont.c src/mont_math.c || die
distutils-r1_python_prepare_all
}
python_test() {
esetup.py test -vv
}

View File

@@ -1,46 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
DESCRIPTION="A self-contained cryptographic library for Python"
HOMEPAGE="https://www.pycryptodome.org https://github.com/Legrandin/pycryptodome https://pypi.org/project/pycryptodome/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="|| ( BSD-2 Unlicense )"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND="dev-libs/gmp:0
virtual/python-cffi[${PYTHON_USEDEP}]
!dev-python/pycrypto"
BDEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
PATCHES=(
"${FILESDIR}/pycryptodome-3.9.4-parallel-make.patch"
# https://github.com/Legrandin/pycryptodome/pull/351
#"${FILESDIR}/pycryptodome-3.9.4-tests.patch"
)
python_prepare_all() {
# parallel make fixes
# Multiple targets were compiling the same file, setuptools doesn't
# understand this and you get race conditions where a file gets
# overwritten while it's linking. This makes the files look like separate
# files so this race won't happen
ln src/blowfish.c src/blowfish_eks.c || die
ln src/mont.c src/mont_math.c || die
distutils-r1_python_prepare_all
}
python_test() {
esetup.py test -vv
}