summaryrefslogtreecommitdiff
path: root/lib/Crypto/Cipher
diff options
context:
space:
mode:
authorLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-10-19 23:02:58 +0200
committerLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-10-19 23:02:58 +0200
commit8390495a9d7c574213fbff51af6f2aea249d81c7 (patch)
treeebd647848d44f9ad152b1766a42f756c0b47638e /lib/Crypto/Cipher
parentc22fa18c0dedb43a8b19dcb9b29512ba59e1764b (diff)
downloadpycrypto-8390495a9d7c574213fbff51af6f2aea249d81c7.tar.gz
Further fixed for python 3
Diffstat (limited to 'lib/Crypto/Cipher')
-rw-r--r--lib/Crypto/Cipher/PKCS1_OAEP.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Crypto/Cipher/PKCS1_OAEP.py b/lib/Crypto/Cipher/PKCS1_OAEP.py
index a9f71df..f02609d 100644
--- a/lib/Crypto/Cipher/PKCS1_OAEP.py
+++ b/lib/Crypto/Cipher/PKCS1_OAEP.py
@@ -219,15 +219,12 @@ class PKCS1OAEP_Cipher:
lHash1 = db[:hLen]
if lHash1!=lHash:
valid = 0
- r = 1
if one<0:
valid = 0
- r = 2
if bord(y)!=0:
valid = 0
- r = 3
if not valid:
- raise ValueError("Incorrect decryption.",r)
+ raise ValueError("Incorrect decryption.")
# Step 4
return db[hLen+one+1:]