crypto: key-derivation must have at least one iteration (#35584)
This commit is contained in:
parent
5f35895c87
commit
072f36779a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue