Commit 7f091c93 authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar)
Browse files

[tests] Use 16 bytes key when testing Blowfish

The version of Cryptodome currently in Debian only accepts Blowfish keys
with at least 5 bytes. This is a bug (it should accept 4 as it did
before) that has since been fixed upstream:

So we work around this issue by using a 16 bytes key instead
(which happens to be the minimum recommended length).
parent 42afaaf708d8
......@@ -7,7 +7,7 @@ class CryptoTC(TestCase):
def test_encrypt_decrypt_roundtrip(self):
data = {'a': u'ah', 'b': [1, 2]}
seed = 'ssss'
seed = 's' * 16
crypted = crypto.encrypt(data, seed)
decrypted = crypto.decrypt(crypted, seed)
self.assertEqual(decrypted, data)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment