summaryrefslogtreecommitdiff
path: root/rsa/pem.py
diff options
context:
space:
mode:
Diffstat (limited to 'rsa/pem.py')
-rw-r--r--rsa/pem.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/rsa/pem.py b/rsa/pem.py
index fbf3642..79d07ac 100644
--- a/rsa/pem.py
+++ b/rsa/pem.py
@@ -35,12 +35,12 @@ def _markers(pem_marker):
def load_pem(contents, pem_marker):
"""Loads a PEM file.
- @param contents: the contents of the file to interpret
- @param pem_marker: the marker of the PEM content, such as 'RSA PRIVATE KEY'
+ :param contents: the contents of the file to interpret
+ :param pem_marker: the marker of the PEM content, such as 'RSA PRIVATE KEY'
when your file has '-----BEGIN RSA PRIVATE KEY-----' and
'-----END RSA PRIVATE KEY-----' markers.
- @return the base64-decoded content between the start and end markers.
+ :return: the base64-decoded content between the start and end markers.
@raise ValueError: when the content is invalid, for example when the start
marker cannot be found.
@@ -97,12 +97,12 @@ def load_pem(contents, pem_marker):
def save_pem(contents, pem_marker):
"""Saves a PEM file.
- @param contents: the contents to encode in PEM format
- @param pem_marker: the marker of the PEM content, such as 'RSA PRIVATE KEY'
+ :param contents: the contents to encode in PEM format
+ :param pem_marker: the marker of the PEM content, such as 'RSA PRIVATE KEY'
when your file has '-----BEGIN RSA PRIVATE KEY-----' and
'-----END RSA PRIVATE KEY-----' markers.
- @return the base64-encoded content between the start and end markers.
+ :return: the base64-encoded content between the start and end markers.
"""