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
Domain: github.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c6d82dbd-192a-d530-f992-041cac789df6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 943A:3B638A:53841F:702AE1:6969D9E5 |
| html-safe-nonce | 9c3e7db1400c20ac8def937a41cd952f0921cc5d60a8673883dc9def16f6eb4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDNBOjNCNjM4QTo1Mzg0MUY6NzAyQUUxOjY5NjlEOUU1IiwidmlzaXRvcl9pZCI6IjEyMTg2MzA5NDExODEzMzYwMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e1b8ec3a4b093ed4b02f8a6f3517f7b32182bca44e7d627536646eea33bd6bed |
| hovercard-subject-tag | issue:2748204108 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/128071/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e60b7c307d77e2a03eace69463c20cfd37b6c0b6b706bf2854de702672e8031/python/cpython/issues/128071 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e60b7c307d77e2a03eace69463c20cfd37b6c0b6b706bf2854de702672e8031/python/cpython/issues/128071 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ghmj2417 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| 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 |
Links:
Viewport: width=device-width