crypto: key-derivation must have at least one iteration (#35584)

This commit is contained in:
Paul Marillonnet 2019-08-27 12:09:09 +02:00
parent 5f35895c87
commit 072f36779a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def test_deterministic_encryption():
raw = uuid.uuid4().bytes
for hash_name in ['md5', 'sha1', 'sha256', 'sha384', 'sha512']:
for count in [0, 1, 50]:
for count in [1, 50]:
crypted1 = crypto.aes_base64url_deterministic_encrypt(key, raw, salt,
hash_name=hash_name, count=count)
crypted2 = crypto.aes_base64url_deterministic_encrypt(key, raw, salt,