-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use usedforsecurity=False
when calling hashlib.blake2b
to avoid crashing on FIPS enabled systems
#1934
Comments
usedforsecurity=False
when calling hashlib.blake2b
to avoid crashing on FIPS enabled systes
usedforsecurity=False
when calling hashlib.blake2b
to avoid crashing on FIPS enabled systesusedforsecurity=False
when calling hashlib.blake2b
to avoid crashing on FIPS enabled systems
Looks like 3.8 isn't supported anyway: Line 29 in 3cc2d36
|
This has been fixed in flexparser and the fix will be moved into pint. Also Pint follows NEP29. Next version of Pint will be released in Apr/May and the Minimum Python and Numpy versions will be 3.10+ and 1.23+. |
simonw
added a commit
to simonw/pint
that referenced
this issue
Feb 14, 2024
simonw
added a commit
to simonw/pint
that referenced
this issue
Feb 14, 2024
mjsir911
pushed a commit
to terrapower/pint
that referenced
this issue
Mar 4, 2024
mjsir911
pushed a commit
to terrapower/pint
that referenced
this issue
Mar 4, 2024
mjsir911
pushed a commit
to terrapower/pint
that referenced
this issue
Mar 4, 2024
This has been fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As reported here:
Pint currently uses the
hashlib.blake2b
hashing function:pint/pint/_vendor/flexparser.py
Lines 1118 to 1123 in 3cc2d36
On systems with FIPS enabled (I only just learned about these today, see my notes here) this will result in a runtime error that looks something like this:
The fix as-of Python 3.9 is to pass
usedforsecurity=False
to thehashlib.blake2b
constructor, documented here.To continue supporting Python 3.8 you can use the pattern I demonstrate in https://til.simonwillison.net/python/md5-fips
The text was updated successfully, but these errors were encountered: