0002-crypto-key-derivation-must-have-at-least-one-iterati.patch
tests/test_crypto.py | ||
---|---|---|
54 | 54 |
raw = uuid.uuid4().bytes |
55 | 55 | |
56 | 56 |
for hash_name in ['md5', 'sha1', 'sha256', 'sha384', 'sha512']: |
57 |
for count in [0, 1, 50]:
|
|
57 |
for count in [1, 50]: |
|
58 | 58 |
crypted1 = crypto.aes_base64url_deterministic_encrypt(key, raw, salt, |
59 | 59 |
hash_name=hash_name, count=count) |
60 | 60 |
crypted2 = crypto.aes_base64url_deterministic_encrypt(key, raw, salt, |
61 |
- |