Move the bindings into the hazmat module
diff --git a/docs/architecture.rst b/docs/architecture.rst
index 8de8649..4cf639c 100644
--- a/docs/architecture.rst
+++ b/docs/architecture.rst
@@ -8,11 +8,11 @@
``cryptography`` has three different layers:
-* ``cryptography.bindings``: This package contains bindings to low level
- cryptographic libraries. Our initial target will be OpenSSL.
-* ``cryptography.hazmat.primitives``: This packages contains low level
- algorithms, things like ``AES`` or ``SHA1``. This is implemented on top of
- ``cryptography.bindings``.
* ``cryptography``: This package contains higher level recipes, for example
"encrypt and then MAC". This is implemented on top of
``cryptography.hazmat.primitives``.
+* ``cryptography.hazmat.primitives``: This packages contains low level
+ algorithms, things like ``AES`` or ``SHA1``. This is implemented on top of
+ ``cryptography.hazmat.bindings``.
+* ``cryptography.hazmat.bindings``: This package contains bindings to low level
+ cryptographic libraries. Our initial target will be OpenSSL.
diff --git a/docs/bindings/index.rst b/docs/hazmat/bindings/index.rst
similarity index 100%
rename from docs/bindings/index.rst
rename to docs/hazmat/bindings/index.rst
diff --git a/docs/bindings/openssl.rst b/docs/hazmat/bindings/openssl.rst
similarity index 93%
rename from docs/bindings/openssl.rst
rename to docs/hazmat/bindings/openssl.rst
index e59b0c1..5a00395 100644
--- a/docs/bindings/openssl.rst
+++ b/docs/hazmat/bindings/openssl.rst
@@ -10,7 +10,7 @@
These are `CFFI`_ bindings to the `OpenSSL`_ C library.
-.. data:: cryptography.bindings.openssl.backend
+.. data:: cryptography.hazmat.bindings.openssl.backend
This is the exposed API for the OpenSSL bindings. It has two public
attributes:
diff --git a/docs/index.rst b/docs/index.rst
index 47418ab..b2420a8 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -31,7 +31,6 @@
:maxdepth: 2
architecture
- bindings/index
contributing
security
community
@@ -43,3 +42,4 @@
:maxdepth: 2
hazmat/primitives/index
+ hazmat/bindings/index