From owner-svn-ports-head@FreeBSD.ORG Fri Jul 26 12:44:05 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2A2E0A9E; Fri, 26 Jul 2013 12:44:05 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 086B02875; Fri, 26 Jul 2013 12:44:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6QCi4KI026325; Fri, 26 Jul 2013 12:44:04 GMT (envelope-from nivit@svn.freebsd.org) Received: (from nivit@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6QCi38K026315; Fri, 26 Jul 2013 12:44:03 GMT (envelope-from nivit@svn.freebsd.org) Message-Id: <201307261244.r6QCi38K026315@svn.freebsd.org> From: Nicola Vitale Date: Fri, 26 Jul 2013 12:44:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r323717 - in head/security: . py-ed25519ll py-ed25519ll/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 12:44:05 -0000 Author: nivit Date: Fri Jul 26 12:44:03 2013 New Revision: 323717 URL: http://svnweb.freebsd.org/changeset/ports/323717 Log: ed25519ll is a low-level wrapper for the Ed25519 public key signature system. It uses Extension() to compile a shared library that is not a Python extension module, and then uses ctypes to talk to the library. With luck it will only be necessary to compile ed25519ll once for each platform, reusing its shared library across Python versions. This wrapper also contains a reasonably performat pure-Python fallback. Unlike the reference implementation, the Python implementation does not contain protection against timing attacks. WWW: http://bitbucket.org/dholth/ed25519ll/ Build logs: http://goo.gl/zv5y7K Added: head/security/py-ed25519ll/ head/security/py-ed25519ll/Makefile (contents, props changed) head/security/py-ed25519ll/distinfo (contents, props changed) head/security/py-ed25519ll/files/ head/security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py (contents, props changed) head/security/py-ed25519ll/files/patch-setup.py (contents, props changed) head/security/py-ed25519ll/pkg-descr (contents, props changed) head/security/py-ed25519ll/pkg-plist (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Fri Jul 26 12:38:21 2013 (r323716) +++ head/security/Makefile Fri Jul 26 12:44:03 2013 (r323717) @@ -750,6 +750,7 @@ SUBDIR += py-cracklib SUBDIR += py-cryptkit SUBDIR += py-ecdsa + SUBDIR += py-ed25519ll SUBDIR += py-fail2ban SUBDIR += py-gnupg SUBDIR += py-gnutls Added: head/security/py-ed25519ll/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ed25519ll/Makefile Fri Jul 26 12:44:03 2013 (r323717) @@ -0,0 +1,21 @@ +# Created by: Nicola Vitale +# $FreeBSD$ + +PORTNAME= ed25519ll +PORTVERSION= 0.6 +#PORTREVISION= 0 +CATEGORIES= security +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Low-level ctypes wrapper for Ed25519 digital signatures + +LICENSE= MIT + +PYEASYINSTALL_ARCHDEP= yes + +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install + +.include Added: head/security/py-ed25519ll/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ed25519ll/distinfo Fri Jul 26 12:44:03 2013 (r323717) @@ -0,0 +1,2 @@ +SHA256 (ed25519ll-0.6.tar.gz) = 7b75b7e6f4c7e7c172229aa78b13436ca9834ef5893598b49c7163d7ba55adf9 +SIZE (ed25519ll-0.6.tar.gz) = 74782 Added: head/security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py Fri Jul 26 12:44:03 2013 (r323717) @@ -0,0 +1,13 @@ +--- ./ed25519ll/ed25519ct.py.orig 2013-07-26 11:26:29.000000000 +0200 ++++ ./ed25519ll/ed25519ct.py 2013-07-26 11:26:43.000000000 +0200 +@@ -15,9 +15,8 @@ + __all__ = ['crypto_sign', 'crypto_sign_open', 'crypto_sign_keypair', 'Keypair', + 'PUBLICKEYBYTES', 'SECRETKEYBYTES', 'SIGNATUREBYTES'] + +-plat_name = get_platform().replace('-', '_') + so_suffix = sysconfig.get_config_var('SO') +-lib_filename = '_ed25519_%s%s' % (plat_name, so_suffix) ++lib_filename = '_ed25519%s' % (so_suffix) + + try: + _ed25519 = ctypes.cdll.LoadLibrary( Added: head/security/py-ed25519ll/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ed25519ll/files/patch-setup.py Fri Jul 26 12:44:03 2013 (r323717) @@ -0,0 +1,20 @@ +--- ./setup.py.orig 2013-07-26 11:26:23.000000000 +0200 ++++ ./setup.py 2013-07-26 11:27:07.000000000 +0200 +@@ -10,8 +10,6 @@ + README = open(os.path.join(here, 'README.txt')).read() + CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() + +-plat_name = get_platform().replace('-', '_') +- + setup(name='ed25519ll', + version='0.6', + description='A low-level ctypes wrapper for Ed25519 digital signatures.', +@@ -33,7 +31,7 @@ + tests_require=['nose'], + test_suite='nose.collector', + ext_modules=[ +- Extension('ed25519ll._ed25519_%s' % plat_name, ++ Extension('ed25519ll._ed25519', + sources=[ + 'ed25519-supercop-ref10/ge_frombytes.c', + 'ed25519-supercop-ref10/fe_frombytes.c', Added: head/security/py-ed25519ll/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ed25519ll/pkg-descr Fri Jul 26 12:44:03 2013 (r323717) @@ -0,0 +1,11 @@ +ed25519ll is a low-level wrapper for the Ed25519 public key signature +system. It uses Extension() to compile a shared library that is not a +Python extension module, and then uses ctypes to talk to the library. With +luck it will only be necessary to compile ed25519ll once for each +platform, reusing its shared library across Python versions. + +This wrapper also contains a reasonably performat pure-Python +fallback. Unlike the reference implementation, the Python implementation +does not contain protection against timing attacks. + +WWW: http://bitbucket.org/dholth/ed25519ll/ Added: head/security/py-ed25519ll/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ed25519ll/pkg-plist Fri Jul 26 12:44:03 2013 (r323717) @@ -0,0 +1,29 @@ +@comment $FreeBSD$ +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/native_libs.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/_ed25519.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/_ed25519.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/_ed25519.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/_ed25519.so +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/djbec.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/djbec.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/djbec.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/ed25519ct.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/ed25519ct.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/ed25519ct.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/ed25519py.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/ed25519py.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/ed25519py.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/test.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/test.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll/test.pyo +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/ed25519ll +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%