aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat
diff options
context:
space:
mode:
Diffstat (limited to 'docs/hazmat')
-rw-r--r--docs/hazmat/primitives/asymmetric/serialization.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/asymmetric/serialization.rst b/docs/hazmat/primitives/asymmetric/serialization.rst
index 739bfb88..c092fab0 100644
--- a/docs/hazmat/primitives/asymmetric/serialization.rst
+++ b/docs/hazmat/primitives/asymmetric/serialization.rst
@@ -16,10 +16,11 @@ methods.
.. code-block:: pycon
+ >>> from cryptography.hazmat.primitives import interfaces
>>> key = load_pkcs8_private_key(pem_data, None, backend)
- >>> if isinstance(key, rsa.RSAPrivateKey):
+ >>> if isinstance(key, interfaces.RSAPrivateKey):
>>> signature = sign_with_rsa_key(key, message)
- >>> elif isinstance(key, dsa.DSAPrivateKey):
+ >>> elif isinstance(key, interfaces.DSAPrivateKey):
>>> signature = sign_with_dsa_key(key, message)
>>> else:
>>> raise TypeError