summaryrefslogtreecommitdiff
path: root/rsa
diff options
context:
space:
mode:
authorSybren A. St?vel <sybren@stuvel.eu>2012-06-18 15:32:15 +0200
committerSybren A. St?vel <sybren@stuvel.eu>2012-06-18 15:32:15 +0200
commit1d59fd47f3642954712be09a01e3341772fc0476 (patch)
tree05dad0eab6b0fd9601674e9926a1681e7281943d /rsa
parente4ed1f9fd1e5a837122b2a554c38ecfcac97f6b8 (diff)
downloadrsa-1d59fd47f3642954712be09a01e3341772fc0476.tar.gz
Fixed doctests
Diffstat (limited to 'rsa')
-rw-r--r--rsa/pkcs1.py2
-rw-r--r--rsa/transform.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/rsa/pkcs1.py b/rsa/pkcs1.py
index 8c6d290..1274fe3 100644
--- a/rsa/pkcs1.py
+++ b/rsa/pkcs1.py
@@ -214,7 +214,7 @@ def decrypt(crypto, priv_key):
keys easier.
>>> crypto = encrypt('hello', pub_key)
- >>> crypto = 'X' + crypto[1:] # change the first byte
+ >>> crypto = crypto[0:5] + 'X' + crypto[6:] # change a byte
>>> decrypt(crypto, priv_key)
Traceback (most recent call last):
...
diff --git a/rsa/transform.py b/rsa/transform.py
index 092b1ca..c740b2d 100644
--- a/rsa/transform.py
+++ b/rsa/transform.py
@@ -52,7 +52,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::