1
0

bitcoin.py AES: implement our own PKCS7 padding

This commit is contained in:
SomberNight
2017-10-22 02:10:34 +02:00
parent fd11397ac6
commit aa1289fa5d
2 changed files with 36 additions and 20 deletions

View File

@@ -113,10 +113,6 @@ class Test_bitcoin(unittest.TestCase):
password = u"uber secret"
wrong_password = u"not the password"
enc = pw_encode(payload, password)
# FIXME: pyaes does not check that padding is consistent
# before removing it, wich causes this test to randomly fail.
# Wallets are unaffected by this, because check_password
# includes a test of the decoded public key.
self.assertRaises(Exception, pw_decode, enc, wrong_password)
def test_hash(self):