summaryrefslogtreecommitdiff
path: root/security/py-ecdsa
diff options
context:
space:
mode:
authorgls <gls>2013-10-20 12:47:11 +0000
committergls <gls>2013-10-20 12:47:11 +0000
commitaa2cdd90530c13dc82c8cc6dd96710799dec360e (patch)
tree303f4fe4d7efc081e0b203cc91b93f0d769c0072 /security/py-ecdsa
parent87da19bcf069c3bd28c2c0ede8f10bfd16dbe82a (diff)
downloadpkgsrc-aa2cdd90530c13dc82c8cc6dd96710799dec360e.tar.gz
Added security/py-ecdsa to the NetBSD packages collection.
py-ecdsa is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve Digital Signature Algorithm), implemented purely in Python, released under the MIT license. With this library, you can quickly create keypairs (signing key and verifying key), sign messages, and verify the signatures. The keys and signatures are very short, making them easy to handle and incorporate into other protocols.
Diffstat (limited to 'security/py-ecdsa')
-rw-r--r--security/py-ecdsa/DESCR12
-rw-r--r--security/py-ecdsa/Makefile23
-rw-r--r--security/py-ecdsa/PLIST35
-rw-r--r--security/py-ecdsa/distinfo5
4 files changed, 75 insertions, 0 deletions
diff --git a/security/py-ecdsa/DESCR b/security/py-ecdsa/DESCR
new file mode 100644
index 00000000000..83843bcb6fa
--- /dev/null
+++ b/security/py-ecdsa/DESCR
@@ -0,0 +1,12 @@
+This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
+Digital Signature Algorithm), implemented purely in Python, released under the
+MIT license. With this library, you can quickly create keypairs (signing key
+and verifying key), sign messages, and verify the signatures. The keys and
+signatures are very short, making them easy to handle and incorporate into
+other protocols.
+
+This library provides key generation, signing, and verifying, for five popular
+NIST "Suite B" GF(p) curves, with key lengths of 192, 224, 256, 384, and 521
+bits. The "short names" for these curves, as known by the OpenSSL tool, are:
+prime192v1, secp224r1, prime256v1, secp384r1, and secp521r1. No other curves
+are included, but it would not be too hard to add more.
diff --git a/security/py-ecdsa/Makefile b/security/py-ecdsa/Makefile
new file mode 100644
index 00000000000..62daaa98966
--- /dev/null
+++ b/security/py-ecdsa/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2013/10/20 12:47:11 gls Exp $
+
+DISTNAME= python-ecdsa-0.9
+PKGNAME= ${PYPKGPREFIX}-ecdsa-0.9
+CATEGORIES= security
+MASTER_SITES= https://github.com/warner/python-ecdsa/archive/
+FETCH_USING= curl
+
+MAINTAINER= gls@NetBSD.org
+HOMEPAGE= https://github.com/warner/python-ecdsa/archive/
+COMMENT= Easy-to-use implementation of ECDSA cryptography
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/python-ecdsa-python-ecdsa-0.9
+USE_LANGUAGES= # none
+
+REPLACE_INTERPRETER+= python
+REPLACE.python.old= /usr/bin/env python
+REPLACE.python.new= ${PYTHONBIN}
+REPLACE_FILES.python= ecdsa/ecdsa.py ecdsa/ellipticcurve.py ecdsa/numbertheory.py
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-ecdsa/PLIST b/security/py-ecdsa/PLIST
new file mode 100644
index 00000000000..6833eaea643
--- /dev/null
+++ b/security/py-ecdsa/PLIST
@@ -0,0 +1,35 @@
+@comment $NetBSD: PLIST,v 1.1 2013/10/20 12:47:11 gls Exp $
+${PYSITELIB}/ecdsa-0.0.0-py2.7.egg-info
+${PYSITELIB}/ecdsa/__init__.py
+${PYSITELIB}/ecdsa/__init__.pyc
+${PYSITELIB}/ecdsa/__init__.pyo
+${PYSITELIB}/ecdsa/curves.py
+${PYSITELIB}/ecdsa/curves.pyc
+${PYSITELIB}/ecdsa/curves.pyo
+${PYSITELIB}/ecdsa/der.py
+${PYSITELIB}/ecdsa/der.pyc
+${PYSITELIB}/ecdsa/der.pyo
+${PYSITELIB}/ecdsa/ecdsa.py
+${PYSITELIB}/ecdsa/ecdsa.pyc
+${PYSITELIB}/ecdsa/ecdsa.pyo
+${PYSITELIB}/ecdsa/ellipticcurve.py
+${PYSITELIB}/ecdsa/ellipticcurve.pyc
+${PYSITELIB}/ecdsa/ellipticcurve.pyo
+${PYSITELIB}/ecdsa/keys.py
+${PYSITELIB}/ecdsa/keys.pyc
+${PYSITELIB}/ecdsa/keys.pyo
+${PYSITELIB}/ecdsa/numbertheory.py
+${PYSITELIB}/ecdsa/numbertheory.pyc
+${PYSITELIB}/ecdsa/numbertheory.pyo
+${PYSITELIB}/ecdsa/rfc6979.py
+${PYSITELIB}/ecdsa/rfc6979.pyc
+${PYSITELIB}/ecdsa/rfc6979.pyo
+${PYSITELIB}/ecdsa/six.py
+${PYSITELIB}/ecdsa/six.pyc
+${PYSITELIB}/ecdsa/six.pyo
+${PYSITELIB}/ecdsa/test_pyecdsa.py
+${PYSITELIB}/ecdsa/test_pyecdsa.pyc
+${PYSITELIB}/ecdsa/test_pyecdsa.pyo
+${PYSITELIB}/ecdsa/util.py
+${PYSITELIB}/ecdsa/util.pyc
+${PYSITELIB}/ecdsa/util.pyo
diff --git a/security/py-ecdsa/distinfo b/security/py-ecdsa/distinfo
new file mode 100644
index 00000000000..4b2c0b12425
--- /dev/null
+++ b/security/py-ecdsa/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/10/20 12:47:11 gls Exp $
+
+SHA1 (python-ecdsa-0.9.tar.gz) = 60ee437c586e64ec506be4fd2ec5fe57731bc57d
+RMD160 (python-ecdsa-0.9.tar.gz) = dcdce4e442559552755f4f1586f4c7de689d6224
+Size (python-ecdsa-0.9.tar.gz) = 45540 bytes