Mercurial > hgrepos > Python > apps > py-cutils
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 119:dd4fe912d7e9 | 120:a548783381b6 |
|---|---|
| 84 return (hashlib.sha3_224, "SHA3-224") | 84 return (hashlib.sha3_224, "SHA3-224") |
| 85 elif s in ("3-256", "sha3-256"): | 85 elif s in ("3-256", "sha3-256"): |
| 86 return (hashlib.sha3_256, "SHA3-256") | 86 return (hashlib.sha3_256, "SHA3-256") |
| 87 elif s in ("3-384", "sha3-384"): | 87 elif s in ("3-384", "sha3-384"): |
| 88 return (hashlib.sha3_384, "SHA3-384") | 88 return (hashlib.sha3_384, "SHA3-384") |
| 89 elif s in ("3-512", "sha3-512"): | 89 elif s in ("3", "3-512", "sha3-512"): |
| 90 return (hashlib.sha3_512, "SHA3-512") | 90 return (hashlib.sha3_512, "SHA3-512") |
| 91 elif s in ("blake2b", "blake2b-512", "blake2", "blake2-512"): | 91 elif s in ("blake2b", "blake2b-512", "blake2", "blake2-512"): |
| 92 return (get_blake2b(), "BLAKE2b") | 92 return (get_blake2b(), "BLAKE2b") |
| 93 elif s in ("blake2s", "blake2s-256"): | 93 elif s in ("blake2s", "blake2s-256"): |
| 94 return (get_blake2s(), "BLAKE2s") | 94 return (get_blake2s(), "BLAKE2s") |
