From efa1f30c1bd3870d266f43064b9c6bf304bfa93c Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Fri, 26 Jul 2013 12:44:03 +0000 Subject: 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 --- security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py (limited to 'security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py') diff --git a/security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py b/security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py new file mode 100644 index 000000000000..1cb59515b2e0 --- /dev/null +++ b/security/py-ed25519ll/files/patch-ed25519ll__ed25519ct.py @@ -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( -- cgit v1.2.3