diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-31 10:34:17 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-31 10:34:17 -0700 |
commit | d9488d06859da184eedf97f9021a45f3b708fe7b (patch) | |
tree | f5bfb033b64651054294a1567710d8e917601d56 /docs/hazmat/backends/interfaces.rst | |
parent | 35f190c4d3b6b61304b4124849bbc07b44f314bb (diff) | |
parent | 286c7dc91f8a95ed19791f8b15a6759897f2563e (diff) | |
download | cryptography-d9488d06859da184eedf97f9021a45f3b708fe7b.tar.gz cryptography-d9488d06859da184eedf97f9021a45f3b708fe7b.tar.bz2 cryptography-d9488d06859da184eedf97f9021a45f3b708fe7b.zip |
Merge pull request #1089 from reaperhulk/docs-updates
add some missing docs for PKCS8SerializationBackend, update changelog
Diffstat (limited to 'docs/hazmat/backends/interfaces.rst')
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 78a35cd9..6f24f906 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -454,3 +454,25 @@ A specific ``backend`` may provide one or more of these interfaces. :returns: :class:`~cryptography.hazmat.primitives.interfaces.CMACContext` + + +.. class:: PKCS8SerializationBackend + + .. versionadded:: 0.5 + + A backend with methods for working with PKCS #8 key serialization. + + .. method:: load_pkcs8_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 the appropriate private key or public key + that the serialized data contains. + + :raises ValueError: If the data could not be deserialized correctly. + + :raises cryptography.exceptions.UnsupportedAlgorithm: If the data is + encrypted with an unsupported algorithm. |