summaryrefslogtreecommitdiff
path: root/lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py')
-rw-r--r--lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py b/lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py
index f5256a5..314d2b8 100644
--- a/lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py
+++ b/lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py
@@ -136,7 +136,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
'''e3 b5 d5 d0 02 c1 bc e5 0c 2b 65 ef 88 a1 88 d8
3b ce 7e 61''',
# Hash algorithm
- SHA
+ SHA1
),
#
@@ -192,7 +192,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
'''de e9 59 c7 e0 64 11 36 14 20 ff 80 18 5e d5 7f
3e 67 76 af''',
# Hash
- SHA
+ SHA1
),
#
@@ -238,7 +238,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
'''ef 28 69 fa 40 c3 46 cb 18 3d ab 3d 7b ff c9 8f
d5 6d f4 2d''',
# Hash
- SHA
+ SHA1
),
#
@@ -285,7 +285,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
# Salt
'''57 bf 16 0b cb 02 bb 1d c7 28 0c f0 45 85 30 b7
d2 83 2f f7''',
- SHA
+ SHA1
),
#
@@ -339,7 +339,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
# Salt
'''1d 65 49 1d 79 c8 64 b3 73 00 9b e6 f6 f2 46 7b
ac 4c 78 fa''',
- SHA
+ SHA1
)
)
@@ -380,7 +380,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
self.failUnless(result)
def testSignVerify(self):
- h = SHA.new()
+ h = SHA1.new()
h.update(b('blah blah blah'))
rng = Random.new().read
@@ -394,7 +394,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
return bchr(0x00)*maskLen
# Verify that PSS is friendly to all ciphers
- for hashmod in (MD2,MD5,SHA,SHA224,SHA256,SHA384,RIPEMD):
+ for hashmod in (MD2,MD5,SHA1,SHA224,SHA256,SHA384,RIPEMD160):
h = hashmod.new()
h.update(b('blah blah blah'))
@@ -406,7 +406,7 @@ class PKCS1_PSS_Tests(unittest.TestCase):
self.failUnless(signer.verify(h, s))
self.assertEqual(key.asked, h.digest_size)
- h = SHA.new()
+ h = SHA1.new()
h.update(b('blah blah blah'))
# Verify that sign() uses a different salt length