Skip to content

Commit b3aa6cb

Browse files
authored
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.
1 parent c6375c1 commit b3aa6cb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
:mod:`hashlib`'s fallback builtin hash implementations now check
2-
usedforsecurity=False, when hashlib is in FIPS mode. This ensures that
3-
approved-only implementations are in use on FIPS systems by default.
4-
The builtin implemenations are made available for unapproved use only.
1+
:mod:`hashlib`'s builtin hash implementations now check ``usedforsecurity=False``,
2+
when the OpenSSL library default provider is in OpenSSL 3's FIPS mode. This helps
3+
ensure that only US FIPS approved implementations are in use by default on systems
4+
configured as such.
5+
6+
This is only active when :mod:`hashlib` has been built with OpenSSL implementation
7+
support and said OpenSSL library includes the FIPS mode feature. Not all variants
8+
do, and OpenSSL is not a *required* build time dependency of ``hashlib``.

0 commit comments

Comments
 (0)