| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7fd9d0c2-07e4-8f9b-9b7d-b28c7af6b136 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AE84:34CBCC:62BE7B:84E38E:6969DDFF |
| html-safe-nonce | 0d18a6e1a1d40619be6b8af930834c5a9acc1d12140899f7e9549c1353879476 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTg0OjM0Q0JDQzo2MkJFN0I6ODRFMzhFOjY5NjlEREZGIiwidmlzaXRvcl9pZCI6Ijc2OTg0NDQ5MzUyNjU2Mzk5MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 73b59de69039bf028be698010eaab864fe1a4eba796bc1526c2b775a259ae1a8 |
| hovercard-subject-tag | pull_request:2201524065 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/127301/files |
| twitter:image | https://avatars.githubusercontent.com/u/19779?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/19779?s=400&v=4 |
| og:image:alt | When _hashlib/OpenSSL is available, and OpenSSL is in FIPS mode, ensure that builtin (fallback) hash implementations are wrapped with a check for usedforsecurity=False. It is likely that buitin imp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/127301/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F127301%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F127301%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/127301/files |
| Reload | https://github.com/python/cpython/pull/127301/files |
| Reload | https://github.com/python/cpython/pull/127301/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/127301/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/127301/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| xnox | https://github.com/xnox |
| python:main | https://github.com/python/cpython/tree/main |
| xnox:hashlib-builtin-fips-check | https://github.com/xnox/cpython/tree/hashlib-builtin-fips-check |
|
Conversation
25
| https://github.com/python/cpython/pull/127301 |
|
Commits
13
| https://github.com/python/cpython/pull/127301/commits |
|
Checks
41
| https://github.com/python/cpython/pull/127301/checks |
|
Files changed
| https://github.com/python/cpython/pull/127301/files |
| Please reload this page | https://github.com/python/cpython/pull/127301/files |
|
gh-127298: When in FIPS mode ensure builtin hashes check for usedforsecurity=False
| https://github.com/python/cpython/pull/127301/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/127301/files |
|
21b30a1
gh-127298: When in FIPS mode ensure builtin hashes check for usedfors…
xnox Nov 26, 2024
| https://github.com/python/cpython/pull/127301/commits/21b30a1d6fa394dc81c2d70686c4acd6cb37934f |
|
42b912a
use != 0 rather than == 1 and update a comment.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/42b912a0477c721969261ce9c5e99ac4ab3988b9 |
|
ac9dc6d
Update the NEWS to reflect reality.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/ac9dc6d18da3ecd35c6681ac2b9868cbf5519361 |
|
4da9f77
address _some_ correctness details in the test.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/4da9f775aea3b9553e7a44e55c54183ad73f7f02 |
|
7a954ff
avoid repeated calls, reword comment.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/7a954ff0b5b87a65c19bab6c30bcc9c7544972d5 |
|
461920d
Update 2024-11-26-16-31-40.gh-issue-127298.jqYJvn.rst
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/461920d149bf7d8919596c60c8e054f02611e07f |
|
dabed52
avoid rerunning test in refleak hunting mode.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/dabed52d66bfea3a89fe37ae741c2027b142c20a |
|
57241db
Change to spawn _test_hashlib_fips from test_hashlib with an env.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/57241dbb2bd9bb74d36827f53e555e202cc42b4d |
|
3910723
Use subTest to id the algorithm.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/3910723fde6bd4edc161925b5943c146c77ff4c5 |
|
e8ef380
lint
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/e8ef3806238540dc8966061eb6bbe54d31d669e2 |
|
3db1eb5
remove the no longer appropriate mention from ssltests.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/3db1eb5ae6d2350f8d3bccdd19e216e1b92c1a61 |
|
4e5dddb
fix subTest context manager nesting.
gpshead Nov 27, 2024
| https://github.com/python/cpython/pull/127301/commits/4e5dddb3c1d458d2422e7fd0d569ed36ed48ceac |
|
fd308b4
Use null provider, which is guaranteed to have nothing
xnox Sep 8, 2025
| https://github.com/python/cpython/pull/127301/commits/fd308b4764902f2bbb21f0ee3096dbb477a639db |
|
Clear filters
| https://github.com/python/cpython/pull/127301/files |
| Please reload this page | https://github.com/python/cpython/pull/127301/files |
| Please reload this page | https://github.com/python/cpython/pull/127301/files |
|
hashlib.py
| https://github.com/python/cpython/pull/127301/files#diff-7b5c7281635ea9d475e73fab120a94e42f591eae502af924184140acab4cc189 |
|
_test_hashlib_fips.py
| https://github.com/python/cpython/pull/127301/files#diff-0795a98ffa29db7ca54b89364d0becd7c7f540901c9bca9373467eba0051d80b |
|
openssl.cnf
| https://github.com/python/cpython/pull/127301/files#diff-fe2bbeb7d88d1da58cdc5e6e1cc3562367e0fee6c90e62c705fb9f1bac8a66f8 |
|
script_helper.py
| https://github.com/python/cpython/pull/127301/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
test_hashlib.py
| https://github.com/python/cpython/pull/127301/files#diff-b19facaf857653d4f07afbb090181f595ef4c9381f2abcd2917abd4f3529e8fe |
|
Makefile.pre.in
| https://github.com/python/cpython/pull/127301/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
2024-11-26-16-31-40.gh-issue-127298.jqYJvn.rst
| https://github.com/python/cpython/pull/127301/files#diff-44afd0145887504c84f5131f37ed1ef74465e299eb09e939d5681b97f4813ffd |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L384 |
| Lib/hashlib.py | https://github.com/python/cpython/pull/127301/files#diff-7b5c7281635ea9d475e73fab120a94e42f591eae502af924184140acab4cc189 |
|
View file
| https://github.com/python/cpython/blob/fd308b4764902f2bbb21f0ee3096dbb477a639db/Lib/hashlib.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/127301/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/127301/files#diff-7b5c7281635ea9d475e73fab120a94e42f591eae502af924184140acab4cc189 |
|
| https://github.com/python/cpython/pull/127301/files#diff-7b5c7281635ea9d475e73fab120a94e42f591eae502af924184140acab4cc189 |
|
| https://github.com/python/cpython/pull/127301/files#diff-7b5c7281635ea9d475e73fab120a94e42f591eae502af924184140acab4cc189 |
|
| https://github.com/python/cpython/pull/127301/files#diff-7b5c7281635ea9d475e73fab120a94e42f591eae502af924184140acab4cc189 |
|
| https://github.com/python/cpython/pull/127301/files#diff-7b5c7281635ea9d475e73fab120a94e42f591eae502af924184140acab4cc189 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L384 |
| Lib/test/_test_hashlib_fips.py | https://github.com/python/cpython/pull/127301/files#diff-0795a98ffa29db7ca54b89364d0becd7c7f540901c9bca9373467eba0051d80b |
|
View file
| https://github.com/python/cpython/blob/fd308b4764902f2bbb21f0ee3096dbb477a639db/Lib/test/_test_hashlib_fips.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/127301/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L387 |
| Lib/test/hashlibdata/openssl.cnf | https://github.com/python/cpython/pull/127301/files#diff-fe2bbeb7d88d1da58cdc5e6e1cc3562367e0fee6c90e62c705fb9f1bac8a66f8 |
|
View file
| https://github.com/python/cpython/blob/fd308b4764902f2bbb21f0ee3096dbb477a639db/Lib/test/hashlibdata/openssl.cnf |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/127301/{{ revealButtonHref }} |
| Lib/test/support/script_helper.py | https://github.com/python/cpython/pull/127301/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
View file
| https://github.com/python/cpython/blob/fd308b4764902f2bbb21f0ee3096dbb477a639db/Lib/test/support/script_helper.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/127301/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/127301/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
| https://github.com/python/cpython/pull/127301/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
| https://github.com/python/cpython/pull/127301/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L384 |
| Lib/test/test_hashlib.py | https://github.com/python/cpython/pull/127301/files#diff-b19facaf857653d4f07afbb090181f595ef4c9381f2abcd2917abd4f3529e8fe |
|
View file
| https://github.com/python/cpython/blob/fd308b4764902f2bbb21f0ee3096dbb477a639db/Lib/test/test_hashlib.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/127301/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/127301/files#diff-b19facaf857653d4f07afbb090181f595ef4c9381f2abcd2917abd4f3529e8fe |
|
| https://github.com/python/cpython/pull/127301/files#diff-b19facaf857653d4f07afbb090181f595ef4c9381f2abcd2917abd4f3529e8fe |
|
| https://github.com/python/cpython/pull/127301/files#diff-b19facaf857653d4f07afbb090181f595ef4c9381f2abcd2917abd4f3529e8fe |
|
| https://github.com/python/cpython/actions/runs/17536172343/job/49799771145?pr=127301 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L84 |
| Makefile.pre.in | https://github.com/python/cpython/pull/127301/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
View file
| https://github.com/python/cpython/blob/fd308b4764902f2bbb21f0ee3096dbb477a639db/Makefile.pre.in |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/127301/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/127301/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/127301/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
| Misc/NEWS.d/next/Library/2024-11-26-16-31-40.gh-issue-127298.jqYJvn.rst | https://github.com/python/cpython/pull/127301/files#diff-44afd0145887504c84f5131f37ed1ef74465e299eb09e939d5681b97f4813ffd |
|
View file
| https://github.com/python/cpython/blob/fd308b4764902f2bbb21f0ee3096dbb477a639db/Misc/NEWS.d/next/Library/2024-11-26-16-31-40.gh-issue-127298.jqYJvn.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/127301/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/127301/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |