Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update the NEWS to reflect reality.
FIPS mode is an OpenSSL feature and we don't require OpenSSL. So anyone wanting to rely on this will need to ensure their build includes Modules/_hashopenssl.c as `_hashlib` linked appropriately.
  • Loading branch information
gpshead authored and xnox committed Sep 8, 2025
commit ac9dc6d18da3ecd35c6681ac2b9868cbf5519361
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
:mod:`hashlib`'s fallback builtin hash implementations now check
usedforsecurity=False, when hashlib is in FIPS mode. This ensures that
approved-only implementations are in use on FIPS systems by default.
The builtin implemenations are made available for unapproved use only.
:mod:`hashlib`'s builtin hash implementations now check ``usedforsecurity=False``,
when the OpenSSL library default provider is in OpenSSL 3's FIPS mode. This helps
ensure that only US FIPS approved implementations are in use by default on systems
configured as such.

This is only active when :mod:`hashlib` has been built with OpenSSL implementation
support and said OpenSSL library includes the FIPS mode feature. Not all variants
do, and OpenSSL is not a *required* build time dependency of ``hashlib``.