René's URL Explorer Experiment


Title: OpenSSL with FIPS enabled causes test_hashlib failures · Issue #128071 · python/cpython · GitHub

Open Graph Title: OpenSSL with FIPS enabled causes test_hashlib failures · Issue #128071 · python/cpython

X Title: OpenSSL with FIPS enabled causes test_hashlib failures · Issue #128071 · python/cpython

Description: Bug report Bug description: We are using OpenSSL 3.3.1 with FIPS enabled. When compiling Python version 3.13.1 with --enable-optimizations, test_hashlib will fail with the following. ... fetching http://www.pythontest.net/hashlib/blake2b...

Open Graph Description: Bug report Bug description: We are using OpenSSL 3.3.1 with FIPS enabled. When compiling Python version 3.13.1 with --enable-optimizations, test_hashlib will fail with the following. ... fetching h...

X Description: Bug report Bug description: We are using OpenSSL 3.3.1 with FIPS enabled. When compiling Python version 3.13.1 with --enable-optimizations, test_hashlib will fail with the following. ... fetching h...

Opengraph URL: https://github.com/python/cpython/issues/128071

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenSSL with FIPS enabled causes test_hashlib failures","articleBody":"# Bug report\n\n### Bug description:\n\nWe are using OpenSSL 3.3.1 with FIPS enabled. When compiling Python version 3.13.1 with --enable-optimizations, test_hashlib will fail with the following.\n\n```python\n...     fetching http://www.pythontest.net/hashlib/blake2b.txt ...\n..      fetching http://www.pythontest.net/hashlib/blake2s.txt ...\n.............ss.................        fetching http://www.pythontest.net/hashlib/sha3_224.txt ...\n..      fetching http://www.pythontest.net/hashlib/sha3_256.txt ...\n..      fetching http://www.pythontest.net/hashlib/sha3_384.txt ...\n..      fetching http://www.pythontest.net/hashlib/sha3_512.txt ...\n.....   fetching http://www.pythontest.net/hashlib/shake_128.txt ...\n.       fetching http://www.pythontest.net/hashlib/shake_256.txt ...\n.......................EE...E\n======================================================================\nERROR: test_usedforsecurity_false (__main__.HashLibTestCase.test_usedforsecurity_false)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/home/user/Python-3.13.1/Lib/test/test_hashlib.py\", line 246, in test_usedforsecurity_false\n    self._hashlib.new(\"md5\", usedforsecurity=False)\n    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n_hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported\n\n======================================================================\nERROR: test_usedforsecurity_true (__main__.HashLibTestCase.test_usedforsecurity_true)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/home/user/Python-3.13.1/Lib/test/test_hashlib.py\", line 235, in test_usedforsecurity_true\n    self._hashlib.new(\"md5\", usedforsecurity=True)\n    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n_hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported\n\n======================================================================\nERROR: test_scrypt (__main__.KDFTests.test_scrypt)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/home/user/Python-3.13.1/Lib/test/test_hashlib.py\", line 1122, in test_scrypt\n    result = hashlib.scrypt(password, salt=salt, n=n, r=r, p=p)\nValueError: [digital envelope routines] unsupported\n\n----------------------------------------------------------------------\nRan 78 tests in 24.957s\n\nFAILED (errors=3, skipped=2)\n```\nI believe there was a change with 3.12 where test failures no longer fail silently so it would make sense why our Python 3.11 build does not fail.\n\nI did some digging and I found the following PRs and issue which I believe pertain to what I am seeing:\n* https://github.com/python/cpython/pull/127301\n* https://github.com/python/cpython/pull/127492\n* https://github.com/python/cpython/issues/127298\n\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/ghmj2417","@type":"Person","name":"ghmj2417"},"datePublished":"2024-12-18T16:01:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/128071/cpython/issues/128071"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c6d82dbd-192a-d530-f992-041cac789df6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id943A:3B638A:53841F:702AE1:6969D9E5
html-safe-nonce9c3e7db1400c20ac8def937a41cd952f0921cc5d60a8673883dc9def16f6eb4b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDNBOjNCNjM4QTo1Mzg0MUY6NzAyQUUxOjY5NjlEOUU1IiwidmlzaXRvcl9pZCI6IjEyMTg2MzA5NDExODEzMzYwMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace1b8ec3a4b093ed4b02f8a6f3517f7b32182bca44e7d627536646eea33bd6bed
hovercard-subject-tagissue:2748204108
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/128071/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5e60b7c307d77e2a03eace69463c20cfd37b6c0b6b706bf2854de702672e8031/python/cpython/issues/128071
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5e60b7c307d77e2a03eace69463c20cfd37b6c0b6b706bf2854de702672e8031/python/cpython/issues/128071
og:image:altBug report Bug description: We are using OpenSSL 3.3.1 with FIPS enabled. When compiling Python version 3.13.1 with --enable-optimizations, test_hashlib will fail with the following. ... fetching h...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameghmj2417
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/128071#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128071
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fissues%2F128071
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/128071
Reloadhttps://github.com/python/cpython/issues/128071
Reloadhttps://github.com/python/cpython/issues/128071
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/128071
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 pagehttps://github.com/python/cpython/issues/128071
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128071
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128071
OpenSSL with FIPS enabled causes test_hashlib failureshttps://github.com/python/cpython/issues/128071#top
https://github.com/gpshead
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/ghmj2417
https://github.com/ghmj2417
ghmj2417https://github.com/ghmj2417
on Dec 18, 2024https://github.com/python/cpython/issues/128071#issue-2748204108
gh-127298: When in FIPS mode ensure builtin hashes check for usedforsecurity=False #127301https://github.com/python/cpython/pull/127301
gh-127298: Refactor test_hashlib for better usedforsecurity & openssl fips mode env support. #127492https://github.com/python/cpython/pull/127492
Ensure builtin hashlib implementations honor usedforsecurity=True when _hashlib is in FIPS mode #127298https://github.com/python/cpython/issues/127298
gpsheadhttps://github.com/gpshead
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.