-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-9216: hashlib usedforsecurity fixes #20258
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
Conversation
71887fe
to
0838bd5
Compare
func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor ``_hashlib.new()``. test_hashlib and test_smtplib handle strict security policy better. Signed-off-by: Christian Heimes <christian@python.org>
@@ -0,0 +1,3 @@ | |||
func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A user reading this shouldn't need to be aware of the internal implementation details behind the Python hashlib "usedforsecurity" construct. I'd just simplify this news entry:
func:`hashlib.new` now passes the ``usedforsecurity`` flag to the internal OpenSSL hash constructors.
and probably omit the final "test_hashlib and test_smtplib handle strict security policy better." part entirely as we don't need a NEWS entry to mention updates to our internal test suite. (though it is harmless to do so)
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
GH-20320 is a backport of this pull request to the 3.9 branch. |
func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor ``_hashlib.new()``. test_hashlib and test_smtplib handle strict security policy better. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran (cherry picked from commit 909b571) Co-authored-by: Christian Heimes <christian@python.org>
func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor ``_hashlib.new()``. test_hashlib and test_smtplib handle strict security policy better. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran (cherry picked from commit 909b571) Co-authored-by: Christian Heimes <christian@python.org>
func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor ``_hashlib.new()``. test_hashlib and test_smtplib handle strict security policy better. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran
func:
hashlib.new
passedusedforsecurity
to OpenSSL EVP constructor_hashlib.new()
. test_hashlib and test_smtplib handle strict securitypolicy better.
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue9216
Automerge-Triggered-By: @tiran