diff options
-rw-r--r-- | README.rst | 8 | ||||
-rw-r--r-- | cryptography/__about__.py | 2 | ||||
-rw-r--r-- | cryptography/bindings/openssl/api.py | 2 | ||||
-rw-r--r-- | cryptography/bindings/openssl/crypto.py | 27 | ||||
-rw-r--r-- | cryptography/bindings/openssl/dsa.py | 30 | ||||
-rw-r--r-- | docs/community.rst | 4 | ||||
-rw-r--r-- | docs/contributing.rst | 2 |
7 files changed, 67 insertions, 8 deletions
@@ -1,11 +1,11 @@ Cryptography ============ -.. image:: https://travis-ci.org/alex/cryptography.png?branch=master - :target: https://travis-ci.org/alex/cryptography +.. image:: https://travis-ci.org/pyca/cryptography.png?branch=master + :target: https://travis-ci.org/pyca/cryptography -.. image:: https://coveralls.io/repos/alex/cryptography/badge.png?branch=master - :target: https://coveralls.io/r/alex/cryptography?branch=master +.. image:: https://coveralls.io/repos/pyca/cryptography/badge.png?branch=master + :target: https://coveralls.io/r/pyca/cryptography?branch=master ``cryptography`` is a package designed to expose cryptographic primitives and recipes to Python developers. 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 = """ +""" diff --git a/docs/community.rst b/docs/community.rst index 809ffd12..86ba5055 100644 --- a/docs/community.rst +++ b/docs/community.rst @@ -10,6 +10,6 @@ You can find ``cryptography`` all over the web: * IRC: ``#cryptography-dev`` on ``irc.freenode.net`` .. _`Mailing list`: https://mail.python.org/mailman/listinfo/cryptography-dev -.. _`Source code`: https://github.com/alex/cryptography -.. _`Issue tracker`: https://github.com/alex/cryptography/issues +.. _`Source code`: https://github.com/pyca/cryptography +.. _`Issue tracker`: https://github.com/pyca/cryptography/issues .. _`Documentation`: https://cryptography.readthedocs.org/ diff --git a/docs/contributing.rst b/docs/contributing.rst index 9dd14c23..8f6a178e 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -141,7 +141,7 @@ Use `tox`_ to build the documentation. For example: The HTML documentation index can now be found at ``docs/_build/html/index.html`` -.. _`GitHub`: https://github.com/alex/cryptography +.. _`GitHub`: https://github.com/pyca/cryptography .. _`our mailing list`: https://mail.python.org/mailman/listinfo/cryptography-dev .. _`PEP 8`: http://www.peps.io/8/ .. _`syntax`: http://sphinx-doc.org/domains.html#info-field-lists |