Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/util/__init__.py @ 120:a548783381b6
More accurate description of --algorithm.
While their: alias "3" to "3-512" (sha3-512).
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 29 Dec 2024 18:46:23 +0100 |
| parents | 12339ac2148d |
| children | 3bd3f32b5e60 |
line wrap: on
line diff
--- a/cutils/util/__init__.py Sun Dec 29 18:34:22 2024 +0100 +++ b/cutils/util/__init__.py Sun Dec 29 18:46:23 2024 +0100 @@ -86,7 +86,7 @@ return (hashlib.sha3_256, "SHA3-256") elif s in ("3-384", "sha3-384"): return (hashlib.sha3_384, "SHA3-384") - elif s in ("3-512", "sha3-512"): + elif s in ("3", "3-512", "sha3-512"): return (hashlib.sha3_512, "SHA3-512") elif s in ("blake2b", "blake2b-512", "blake2", "blake2-512"): return (get_blake2b(), "BLAKE2b")
