diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-01-22 11:42:23 +0100 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-01-22 11:42:23 +0100 |
commit | e89dbb9e5acead61304b6817a8e50640035bbb58 (patch) | |
tree | 8caa9f98d35a7951f16e37026772ff3af5b04a94 /rsa/pkcs1.py | |
parent | d3d10345b47c2b17922bb91059cfceea82f82338 (diff) | |
download | rsa-git-e89dbb9e5acead61304b6817a8e50640035bbb58.tar.gz |
Using r""" for some docstrings
Diffstat (limited to 'rsa/pkcs1.py')
-rw-r--r-- | rsa/pkcs1.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rsa/pkcs1.py b/rsa/pkcs1.py index 18a80c9..fdbbb8b 100644 --- a/rsa/pkcs1.py +++ b/rsa/pkcs1.py @@ -65,7 +65,7 @@ class VerificationError(CryptoError): def _pad_for_encryption(message, target_length): - """Pads the message for encryption, returning the padded message. + r"""Pads the message for encryption, returning the padded message. :return: 00 02 RANDOM_DATA 00 MESSAGE @@ -111,7 +111,7 @@ def _pad_for_encryption(message, target_length): def _pad_for_signing(message, target_length): - """Pads the message for signing, returning the padded message. + r"""Pads the message for signing, returning the padded message. The padding is always a repetition of FF bytes. @@ -177,7 +177,7 @@ def encrypt(message, pub_key): def decrypt(crypto, priv_key): - """Decrypts the given message using PKCS#1 v1.5 + r"""Decrypts the given message using PKCS#1 v1.5 The decryption is considered 'failed' when the resulting cleartext doesn't start with the bytes 00 02, or when the 00 byte between the padding and |