Re: hashlib and sha384

Andrey Rakhmatullin <[email protected]> Sun, 31 May 2026 13:41:00 +0500
Newsgroups gmane.linux.debian.devel.python
Message-ID <[email protected]>
--odW/BtO0jTX+rdGk
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 31, 2026 at 10:31:48AM +0200, Rene Engelhard wrote:
>  File "/usr/lib/python3/dist-packages/hypothesis/internal/conjecture/util=
s.py", line 35, in calc_label_from_name
>    hashed =3D hashlib.sha384(name.encode()).digest()
>             ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
>_hashlib.UnsupportedDigestmodError: unsupported hash type sha384
>
>happens. (for both 3.13 and 3.14)
>
>From what I read in https://docs.python.org/3/library/hashlib.html sha384 =
should have been supported in python anyways and
>xmlsec1s build has
>checking for SHA384 support... yes
>(if it even matters, python3s _hashlib doesn't use xmlsec..)

Considering that sha384(b'').digest() works for me in sid Python you may=20
want to describe your environment better. E.g. do you have anything from=20
experimental installed (like the aforementioned openssl 4)? Is it a clean c=
hroot?

>Am I missing something obvious?

No, to my knowledge.


--=20
WBR, wRAR

--odW/BtO0jTX+rdGk
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJhBAABCgBLFiEEtf6ieDcfC1EgtGkao+OWn23e7IYFAmob9BctFIAAAAAAFQAP
cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEKPjlp9t3uyG
6AIP/Rm/70X02d96tz+YL5pWmC2JD5UToeZImhCUXRNkhhVx+JIJC7lPw6gIDIbv
opwAgU61F9EvDJlMK8KJ0u3GwnH69zyuFBc7rQJ9HAcw0jNW85/N1ctfJahaCZXx
gqkLwzDsBVx59Da6lMoruSzDprazwYOxzOZIFHexUEfNMg+Zc7QqmhGqXRgL8Yet
5ZZHsoYm16Qx72/YhlxChLp3w74tIOY5vOHDC0qKjA4DOmcxKzuBES7U13Fjc758
uNPgrYv3kxRWVdpXroWdoBp3dXOFiGQ/ZTdkGrTPKCfJ1axLvOU+bJz6r2gWQOfE
NtslxRux90ZQN+RNpfA1kt2nrz+0QgcADF/egLt2mPSAd/3hQuutF89OFvF7cdU5
VqIYXamfZwNpw34Pfa0yaliePMNJ8qzVrjDqzkIyvjSMiiuYJVjG5zHLgY89xQxq
pc+M4Nj3fitzxTHwoWJ512ySlhKocH0ToJAA3LE/jhZ3bLqdGiP5hYDcxFny52/T
i1TBXjcXYeP0e6771gixfUuMamT3MEGEUMtfiP2WpjzhilTqMGcko48PfVXg2Sox
EzgKRy2g1rPn+w1J5wTvmHDnA66Rmg1PlLYguWAQAFa77NIXHCjg4y/yfRTPFxXD
UwnFMT9+94mF+xFa4inPvVE/3rldZXUG3yjgmo/jG8SnffNr
=VDWm
-----END PGP SIGNATURE-----

--odW/BtO0jTX+rdGk--