aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/asymmetric/serialization.rst
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-12-30 12:50:14 +0000
committerAlex Stapleton <alexs@prol.etari.at>2015-01-24 14:50:32 +0000
commitf79c2313afdedae24b1b5b6d8fb8ff57f778a29b (patch)
tree0217de19e172701eef50dfef9dc43e2d7e22a3f4 /docs/hazmat/primitives/asymmetric/serialization.rst
parentb9690abdb3b8afc0599a30deddd06a1681286d47 (diff)
downloadcryptography-f79c2313afdedae24b1b5b6d8fb8ff57f778a29b.tar.gz
cryptography-f79c2313afdedae24b1b5b6d8fb8ff57f778a29b.tar.bz2
cryptography-f79c2313afdedae24b1b5b6d8fb8ff57f778a29b.zip
Move RSA*Key interfaces to cryptography.hazmat.primitives.asymmetric.rsa
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/serialization.rst')
-rw-r--r--docs/hazmat/primitives/asymmetric/serialization.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/asymmetric/serialization.rst b/docs/hazmat/primitives/asymmetric/serialization.rst
index 1456b0dc..f63455e4 100644
--- a/docs/hazmat/primitives/asymmetric/serialization.rst
+++ b/docs/hazmat/primitives/asymmetric/serialization.rst
@@ -44,10 +44,10 @@ methods.
.. doctest::
>>> from cryptography.hazmat.backends import default_backend
- >>> from cryptography.hazmat.primitives import interfaces
+ >>> from cryptography.hazmat.primitives.asymmetric import rsa
>>> from cryptography.hazmat.primitives.serialization import load_pem_private_key
>>> key = load_pem_private_key(pem_data, password=None, backend=default_backend())
- >>> if isinstance(key, interfaces.RSAPrivateKey):
+ >>> if isinstance(key, rsa.RSAPrivateKey):
... signature = sign_with_rsa_key(key, message)
... elif isinstance(key, interfaces.DSAPrivateKey):
... signature = sign_with_dsa_key(key, message)