abouttreesummaryrefslogcommitdiff
path: root/ext/olm/lib/curve25519-donna/setup.py
diff options
context:
space:
mode:
authorpatrick-scho2023-11-13 19:58:33 +0100
committerpatrick-scho2023-11-13 19:58:33 +0100
commitda776f86b42946715c27edd64f7558b9d5080df1 (patch)
treec7e340bb253bd38f73368baeec7f12e914a39955 /ext/olm/lib/curve25519-donna/setup.py
parent21c6e8484b0bd05c27e5a91f2884d431926adc61 (diff)
downloadmatrix_esp_thesis-da776f86b42946715c27edd64f7558b9d5080df1.tar.gz
matrix_esp_thesis-da776f86b42946715c27edd64f7558b9d5080df1.zip
add dependencies to repo
Diffstat (limited to 'ext/olm/lib/curve25519-donna/setup.py')
-rw-r--r--ext/olm/lib/curve25519-donna/setup.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/ext/olm/lib/curve25519-donna/setup.py b/ext/olm/lib/curve25519-donna/setup.py
new file mode 100644
index 0000000..df5cbfd
--- /dev/null
+++ b/ext/olm/lib/curve25519-donna/setup.py
@@ -0,0 +1,38 @@
+#! /usr/bin/env python
+
+from subprocess import Popen, PIPE
+from distutils.core import setup, Extension
+
+version = Popen(["git", "describe", "--tags"], stdout=PIPE).communicate()[0]\
+ .strip().decode("utf8")
+
+ext_modules = [Extension("curve25519._curve25519",
+ ["python-src/curve25519/curve25519module.c",
+ "curve25519-donna.c"],
+ )]
+
+short_description="Python wrapper for the Curve25519 cryptographic library"
+long_description="""\
+Curve25519 is a fast elliptic-curve key-agreement protocol, in which two
+parties Alice and Bob each generate a (public,private) keypair, exchange
+public keys, and can then compute the same shared key. Specifically, Alice
+computes F(Aprivate, Bpublic), Bob computes F(Bprivate, Apublic), and both
+get the same value (and nobody else can guess that shared value, even if they
+know Apublic and Bpublic).
+
+This is a Python wrapper for the portable 'curve25519-donna' implementation
+of this algorithm, written by Adam Langley, hosted at
+http://code.google.com/p/curve25519-donna/
+"""
+
+setup(name="curve25519-donna",
+ version=version,
+ description=short_description,
+ long_description=long_description,
+ author="Brian Warner",
+ author_email="warner-pycurve25519-donna@lothar.com",
+ license="BSD",
+ packages=["curve25519", "curve25519.test"],
+ package_dir={"curve25519": "python-src/curve25519"},
+ ext_modules=ext_modules,
+ )