aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-04 21:20:26 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-04 21:20:26 -0700
commit635ff50e73ae789ba7594c64ee1bd060ac23f69e (patch)
tree5eb48b53c81af4b5e13ebd086e58f57ed0b6fd4b /cryptography
parent96461f9e71452aaeba3886a4e357e477950e89bf (diff)
parent66f225c5bb28281cd884d19c743cefd925124689 (diff)
downloadcryptography-635ff50e73ae789ba7594c64ee1bd060ac23f69e.tar.gz
cryptography-635ff50e73ae789ba7594c64ee1bd060ac23f69e.tar.bz2
cryptography-635ff50e73ae789ba7594c64ee1bd060ac23f69e.zip
Merge branch 'master' into bind-dh
Conflicts: cryptography/bindings/openssl/api.py
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/__about__.py2
-rw-r--r--cryptography/bindings/openssl/api.py2
-rw-r--r--cryptography/bindings/openssl/crypto.py27
-rw-r--r--cryptography/bindings/openssl/dsa.py30
4 files changed, 60 insertions, 1 deletions
diff --git a/cryptography/__about__.py b/cryptography/__about__.py
index 6499ff2b..e5eca6c6 100644
--- a/cryptography/__about__.py
+++ b/cryptography/__about__.py
@@ -20,7 +20,7 @@ __all__ = [
__title__ = "cryptography"
__summary__ = ("cryptography is a package designed to expose cryptographic "
"primitives and recipes to Python developers.")
-__uri__ = "https://github.com/alex/cryptography"
+__uri__ = "https://github.com/pyca/cryptography"
__version__ = "0.1.dev1"
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index 00beca16..8b13277e 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -26,7 +26,9 @@ class API(object):
"""
_modules = [
"bignum",
+ "crypto",
"dh",
+ "dsa",
"evp",
"opensslv",
]
diff --git a/cryptography/bindings/openssl/crypto.py b/cryptography/bindings/openssl/crypto.py
new file mode 100644
index 00000000..0f40d5b6
--- /dev/null
+++ b/cryptography/bindings/openssl/crypto.py
@@ -0,0 +1,27 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+INCLUDES = """
+#include <openssl/crypto.h>
+"""
+
+TYPES = """
+"""
+
+FUNCTIONS = """
+void CRYPTO_free(void *);
+"""
+
+MACROS = """
+void CRYPTO_add(int *, int, int);
+"""
diff --git a/cryptography/bindings/openssl/dsa.py b/cryptography/bindings/openssl/dsa.py
new file mode 100644
index 00000000..2fa67b87
--- /dev/null
+++ b/cryptography/bindings/openssl/dsa.py
@@ -0,0 +1,30 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+INCLUDES = """
+#include <openssl/dsa.h>
+"""
+
+TYPES = """
+typedef ... DSA;
+"""
+
+FUNCTIONS = """
+DSA *DSA_generate_parameters(int, unsigned char *, int, int *, unsigned long *,
+ void (*)(int, int, void *), void *);
+int DSA_generate_key(DSA *);
+void DSA_free(DSA *);
+"""
+
+MACROS = """
+"""