-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Support HTTP digest authentication algorithm SHA-256 as per RFC-7617 #128192
Comments
I think we only need SHA256. That is say. from RFC-7616
|
We do support SHA-512-256 in hashlib if the underlying OpenSSL library implements it. This is the truncated SHA-2-512. This can be constructed via As for SHA-256-ness and SHA-512-sess are similar to SHA-256/512 and only differ in how A1 is computed (see https://datatracker.ietf.org/doc/html/rfc7616#section-3.4.2). |
…GH-128193) support sha-256 digest authentication Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
@calvinbui If you're interested in the follow-up PR for tests and docs, we can keep the issue opened. |
I suggest just opening a new issue for test/doc improvements as those wouldn't strictly be related to this feature. |
…ability (gh-128324) Puts the _hashlib get_fips_mode logic check into test.support rather than spreading it out among other tests.
…C-7617 (pythonGH-128193) support sha-256 digest authentication Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
… availability (pythongh-128324) Puts the _hashlib get_fips_mode logic check into test.support rather than spreading it out among other tests.
Feature or enhancement
Proposal:
Support SHA-256 digest authentication following RFC7616 - https://datatracker.ietf.org/doc/html/rfc7616
CPython currently supports MD5 and SHA1 only.
Other possible methods include
SHA-256-ness
,SHA-512-256
andSHA-512-256-sess
which hashlib doesn't currently appear to support out of the box.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: