From 814c57538b7cabba28024fb26c35dc29ab30dfc1 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 11 Jul 2014 13:02:50 -0700 Subject: Fixed name of the function --- docs/hazmat/primitives/asymmetric/serialization.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/hazmat/primitives') 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 -- cgit v1.2.3