From 2fb76a3d39ae3ab189bb08336fc4eb42950771a6 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 15 Feb 2014 11:10:57 +0000 Subject: OpenSSL "traditional" key format loading... Backend interface only. --- docs/hazmat/backends/interfaces.rst | 23 +++++++++++++++++++++++ docs/spelling_wordlist.txt | 2 ++ 2 files changed, 25 insertions(+) (limited to 'docs') 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. diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index 9bc84e50..7200855d 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -13,6 +13,8 @@ cryptographically decrypt decrypted decrypting +deserialize +deserialized Docstrings fernet Fernet -- cgit v1.2.3