Import py-rsa-3.2.3.
Python-RSA is a pure-Python RSA implementation. It supports encryption and decryption, signing and verifying signatures, and key generation according to PKCS#1 version 1.5. It can be used as a Python library as well as on the commandline. ok sthen@ robert@
This commit is contained in:
parent
6f2e51e93f
commit
2f164eccaf
44
security/py-rsa/Makefile
Normal file
44
security/py-rsa/Makefile
Normal file
@ -0,0 +1,44 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2016/01/06 15:45:14 ajacoutot Exp $
|
||||
|
||||
COMMENT= Python RSA implementation
|
||||
|
||||
MODPY_EGG_VERSION= 3.2.3
|
||||
DISTNAME= rsa-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
|
||||
CATEGORIES= security
|
||||
|
||||
HOMEPAGE= https://pypi.python.org/pypi/rsa
|
||||
|
||||
# Apache 2.0
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
MODPY_PI= Yes
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
|
||||
RUN_DEPENDS= devel/py-asn1${MODPY_FLAVOR}
|
||||
|
||||
FLAVORS= python3
|
||||
FLAVOR ?=
|
||||
|
||||
.if ${FLAVOR:Mpython3}
|
||||
# needs devel/py-unittest2,python3
|
||||
#NO_TEST= Yes
|
||||
.else
|
||||
TEST_DEPENDS= ${RUN_DEPENDS} \
|
||||
devel/py-unittest2
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:Mpython3}
|
||||
post-install:
|
||||
for i in ${PREFIX}/bin/*; do \
|
||||
mv $${i} $${i}${MODPY_BIN_SUFFIX} ;\
|
||||
done
|
||||
.endif
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${MODPY_BIN} ./run_tests.py
|
||||
|
||||
.include <bsd.port.mk>
|
2
security/py-rsa/distinfo
Normal file
2
security/py-rsa/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (rsa-3.2.3.tar.gz) = FNsojMQNYzne32DXpHBTqwBLSol2pcWUAqIR2Pxb8h8=
|
||||
SIZE (rsa-3.2.3.tar.gz) = 35628
|
4
security/py-rsa/pkg/DESCR
Normal file
4
security/py-rsa/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
Python-RSA is a pure-Python RSA implementation. It supports encryption and
|
||||
decryption, signing and verifying signatures, and key generation according to
|
||||
PKCS#1 version 1.5. It can be used as a Python library as well as on the
|
||||
commandline.
|
54
security/py-rsa/pkg/PLIST
Normal file
54
security/py-rsa/pkg/PLIST
Normal file
@ -0,0 +1,54 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/01/06 15:45:14 ajacoutot Exp $
|
||||
bin/pyrsa-decrypt${MODPY_BIN_SUFFIX}
|
||||
bin/pyrsa-decrypt-bigfile${MODPY_BIN_SUFFIX}
|
||||
bin/pyrsa-encrypt${MODPY_BIN_SUFFIX}
|
||||
bin/pyrsa-encrypt-bigfile${MODPY_BIN_SUFFIX}
|
||||
bin/pyrsa-keygen${MODPY_BIN_SUFFIX}
|
||||
bin/pyrsa-priv2pub${MODPY_BIN_SUFFIX}
|
||||
bin/pyrsa-sign${MODPY_BIN_SUFFIX}
|
||||
bin/pyrsa-verify${MODPY_BIN_SUFFIX}
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}_version133.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}_version200.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}asn1.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}bigfile.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}cli.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}common.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}core.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}key.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}parallel.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}pem.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}pkcs1.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}prime.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}randnum.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}transform.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/${MODPY_PYCACHE}varblock.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/_compat.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/_version133.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/_version200.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/asn1.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/bigfile.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/cli.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/common.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/core.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/key.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/parallel.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/pem.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/pkcs1.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/prime.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/randnum.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/transform.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/util.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rsa/varblock.py
|
Loading…
Reference in New Issue
Block a user