aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/backends
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-02-15 11:10:57 +0000
committerAlex Stapleton <alexs@prol.etari.at>2014-02-20 19:48:51 +0000
commit2fb76a3d39ae3ab189bb08336fc4eb42950771a6 (patch)
treead5d7edddf6a8ec11652a3e03d9c5d0b7e67590f /docs/hazmat/backends
parent6a364d5262905d00ae422d24d91af822b87e899d (diff)
downloadcryptography-2fb76a3d39ae3ab189bb08336fc4eb42950771a6.tar.gz
cryptography-2fb76a3d39ae3ab189bb08336fc4eb42950771a6.tar.bz2
cryptography-2fb76a3d39ae3ab189bb08336fc4eb42950771a6.zip
OpenSSL "traditional" key format loading...
Backend interface only.
Diffstat (limited to 'docs/hazmat/backends')
-rw-r--r--docs/hazmat/backends/interfaces.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index bd38ed50..af19fbc6 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -248,3 +248,26 @@ A specific ``backend`` may provide one or more of these interfaces.
:returns:
:class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext`
+
+
+.. class:: OpenSSLSerializationBackend
+
+ .. versionadded:: 0.3
+
+ A backend with methods for working with OpenSSL's "traditional" PKCS #1
+ style key serialization.
+
+ .. method:: load_openssl_pem_private_key(data, password)
+
+ :param bytes data: PEM data to deserialize.
+
+ :param bytes password: The password to use if this data is encrypted.
+ Should be None if the data is not encrypted.
+
+ :return: A new instance of
+ :class:`~cryptography.hazmat.primitives.serialization.OpenSSLPrivateKey`
+
+ :raises ValueError: If the data could not be deserialized correctly.
+
+ :raises cryptography.exceptions.UnsupportedAlgorithm: If the data is
+ encrypted with an unsupported algorithm.