aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/asymmetric
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-07-11 12:42:02 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-07-11 12:42:02 -0700
commit3ed90bb71a7d9339bafd1ac2c13a53c2aef22a96 (patch)
tree2e97654225c494a36a5e516cd26dff6bffdb035d /docs/hazmat/primitives/asymmetric
parent1872e75fea4b9acf591707ad1da203909ea0bd5f (diff)
downloadcryptography-3ed90bb71a7d9339bafd1ac2c13a53c2aef22a96.tar.gz
cryptography-3ed90bb71a7d9339bafd1ac2c13a53c2aef22a96.tar.bz2
cryptography-3ed90bb71a7d9339bafd1ac2c13a53c2aef22a96.zip
Fixed example in the serialization docs
Diffstat (limited to 'docs/hazmat/primitives/asymmetric')
-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