diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-07-11 13:02:50 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-07-11 13:02:50 -0700 |
commit | 814c57538b7cabba28024fb26c35dc29ab30dfc1 (patch) | |
tree | e28bed95c41ac105be54ea6c97ff5d674f157647 | |
parent | 3ed90bb71a7d9339bafd1ac2c13a53c2aef22a96 (diff) | |
download | cryptography-814c57538b7cabba28024fb26c35dc29ab30dfc1.tar.gz cryptography-814c57538b7cabba28024fb26c35dc29ab30dfc1.tar.bz2 cryptography-814c57538b7cabba28024fb26c35dc29ab30dfc1.zip |
Fixed name of the function
-rw-r--r-- | docs/hazmat/primitives/asymmetric/serialization.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/asymmetric/serialization.rst b/docs/hazmat/primitives/asymmetric/serialization.rst index c092fab0..93bcffd0 100644 --- a/docs/hazmat/primitives/asymmetric/serialization.rst +++ b/docs/hazmat/primitives/asymmetric/serialization.rst @@ -17,7 +17,8 @@ methods. .. code-block:: pycon >>> from cryptography.hazmat.primitives import interfaces - >>> key = load_pkcs8_private_key(pem_data, None, backend) + >>> from cryptography.hazmat.primitives.serialization import load_pem_pkcs8_private_key + >>> key = load_pem_pkcs8_private_key(pem_data, password=None, backend=backend) >>> if isinstance(key, interfaces.RSAPrivateKey): >>> signature = sign_with_rsa_key(key, message) >>> elif isinstance(key, interfaces.DSAPrivateKey): @@ -36,7 +37,7 @@ recognizable because they all begin with ``-----BEGIN PRIVATE KEY-----`` or with ``-----BEGIN ENCRYPTED PRIVATE KEY-----`` if they have a password. -.. function:: load_pkcs8_private_key(data, password, backend) +.. function:: load_pem_pkcs8_private_key(data, password, backend) .. versionadded:: 0.5 |