aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2016-01-22 11:42:23 +0100
committerSybren A. Stüvel <sybren@stuvel.eu>2016-01-22 11:42:23 +0100
commite89dbb9e5acead61304b6817a8e50640035bbb58 (patch)
tree8caa9f98d35a7951f16e37026772ff3af5b04a94
parentd3d10345b47c2b17922bb91059cfceea82f82338 (diff)
downloadrsa-e89dbb9e5acead61304b6817a8e50640035bbb58.tar.gz
Using r""" for some docstrings
-rw-r--r--rsa/_version200.py2
-rw-r--r--rsa/pkcs1.py6
-rw-r--r--rsa/transform.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/rsa/_version200.py b/rsa/_version200.py
index 28f3601..eba0d27 100644
--- a/rsa/_version200.py
+++ b/rsa/_version200.py
@@ -59,7 +59,7 @@ def gcd(p, q):
def bytes2int(bytes):
- """Converts a list of bytes or a string to an integer
+ r"""Converts a list of bytes or a string to an integer
>>> (((128 * 256) + 64) * 256) + 15
8405007
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
diff --git a/rsa/transform.py b/rsa/transform.py
index 63cbc14..889b3f2 100644
--- a/rsa/transform.py
+++ b/rsa/transform.py
@@ -38,7 +38,7 @@ from rsa._compat import is_integer, b, byte, get_word_alignment, ZERO_BYTE, EMPT
def bytes2int(raw_bytes):
- """Converts a list of bytes or an 8-bit string to an integer.
+ r"""Converts a list of bytes or an 8-bit string to an integer.
When using unicode strings, encode it to some encoding like UTF8 first.
@@ -53,7 +53,7 @@ def bytes2int(raw_bytes):
def _int2bytes(number, block_size=None):
- """Converts a number to a string of bytes.
+ r"""Converts a number to a string of bytes.
Usage::