Projet

Général

Profil

0002-crypto-key-derivation-must-have-at-least-one-iterati.patch

Paul Marillonnet, 17 septembre 2019 17:09

Télécharger (976 octets)

Voir les différences:

Subject: [PATCH 2/4] crypto: key-derivation must have at least one iteration
 (#35584)

 tests/test_crypto.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
-