diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2016-06-20 12:07:21 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2016-06-20 12:07:21 -0400 |
| commit | 9088b88b4180603b2596acbe67083a4a37ab2365 (patch) | |
| tree | edb2c8dfd9605e2d76b3bfa4cd9fe0a8f97ab4ef /admin | |
| parent | 06ba0a4e1955f9e858a98b88a1e7e8916e44c75d (diff) | |
| download | passlib-9088b88b4180603b2596acbe67083a4a37ab2365.tar.gz | |
pbkdf2_hmac: now supports hashlib.pbkdf2_hmac() and fastpbkdf2 as backends.
* digest code now checks for fastpbkdf2 & hashlib backends
* tests: added some more test vectors from fastpbkdf2
* to match hashlib, now throwing OverflowError on large keylens, not ValueError.
* to match hashlib, now throwing ValueError on keylen=0, previously returned b""
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/bench_pbkdf2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/bench_pbkdf2.py b/admin/bench_pbkdf2.py index 00ea94e..18c98fd 100644 --- a/admin/bench_pbkdf2.py +++ b/admin/bench_pbkdf2.py @@ -139,9 +139,9 @@ def main(): #-------------------------------------------------------------- import passlib.crypto.digest as digest_mod - for backend in ["from_bytes", "unpack", "hexlify"]: + for backend in ["from-bytes", "unpack", "hexlify"]: name = "p/%s" % backend - if backend == "from_bytes" and not PY3: + if backend == "from-bytes" and not PY3: na(name) continue os.environ['PASSLIB_PBKDF2_BACKEND'] = backend |
