René's URL Explorer Experiment


Title: Replace built-in hashlib with verified implementations from HACL* · Issue #99108 · python/cpython · GitHub

Open Graph Title: Replace built-in hashlib with verified implementations from HACL* · Issue #99108 · python/cpython

X Title: Replace built-in hashlib with verified implementations from HACL* · Issue #99108 · python/cpython

Description: Feature or enhancement We propose to replace the non-OpenSSL cryptographic primitives in hashlib with high-assurance, verified versions from the HACL* project. Pitch As evidenced by the recent SHA3 buffer overflow, cryptographic primitiv...

Open Graph Description: Feature or enhancement We propose to replace the non-OpenSSL cryptographic primitives in hashlib with high-assurance, verified versions from the HACL* project. Pitch As evidenced by the recent SHA3...

X Description: Feature or enhancement We propose to replace the non-OpenSSL cryptographic primitives in hashlib with high-assurance, verified versions from the HACL* project. Pitch As evidenced by the recent SHA3...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replace built-in hashlib with verified implementations from HACL*","articleBody":"# Feature or enhancement\r\n\r\nWe propose to replace the non-OpenSSL cryptographic primitives in hashlib with high-assurance, verified versions from the HACL* project. \r\n\r\n# Pitch\r\n\r\nAs evidenced by the recent SHA3 buffer overflow, cryptographic primitives are tricky to implement correctly. There might be issues with memory management, exceeding lengths, incorrect buffer management, or worse, incorrect implementations in corner cases.\r\n\r\nThe HACL* project \u003chttps://github.com/hacl-star/hacl-star\u003e provides _verified_ implementations of cryptographic primitives. These implementations are mathematically shown to be:\r\n- memory safe (no buffer overflows, no use-after-free)\r\n- functionally correct (they always compute the right result)\r\n- side-channel resistant (the most egregious variants of side-channels, such as memory and timing leaks, are ruled out by construction).\r\n\r\nSee https://hacl-star.github.io/Overview.html#what-is-verified-software for a longer description of how formal methods can help write high-assurance software and rule out entire classes of bugs.\r\n\r\nThe performance of HACL* is competitive with, and sometimes exceeds, that of OpenSSL. HACL* is distributed as pure C, and therefore is portable. Parts of HACL* have been adopted in Mozilla, Linux, the Tezos blockchain, and many more, thereby demonstrating that formally verified code is ready for production-time.\r\n\r\n# Previous discussion\r\n\r\nTagging @alex with whom I've informally discussed this.\n\n\u003c!-- gh-pr-number: gh-99109 --\u003e\n* PR: gh-99109\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-101707 --\u003e\n* PR: gh-101707\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-101917 --\u003e\n* PR: gh-101917\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-101924 --\u003e\n* PR: gh-101924\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-102089 --\u003e\n* PR: gh-102089\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-102183 --\u003e\n* PR: gh-102183\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-102308 --\u003e\n* PR: gh-102308\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-103597 --\u003e\n* PR: gh-103597\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104293 --\u003e\n* PR: gh-104293\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104401 --\u003e\n* PR: gh-104401\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104675 --\u003e\n* PR: gh-104675\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104776 --\u003e\n* PR: gh-104776\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104808 --\u003e\n* PR: gh-104808\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104893 --\u003e\n* PR: gh-104893\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-105634 --\u003e\n* PR: gh-105634\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-105635 --\u003e\n* PR: gh-105635\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-117237 --\u003e\n* PR: gh-117237\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-117243 --\u003e\n* PR: gh-117243\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-117295 --\u003e\n* PR: gh-117295\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-117302 --\u003e\n* PR: gh-117302\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-119316 --\u003e\n* PR: gh-119316\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-123027 --\u003e\n* PR: gh-123027\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-123146 --\u003e\n* PR: gh-123146\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-124304 --\u003e\n* PR: gh-124304\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-125244 --\u003e\n* PR: gh-125244\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-126270 --\u003e\n* PR: gh-126270\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-126359 --\u003e\n* PR: gh-126359\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-130157 --\u003e\n* PR: gh-130157\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-132120 --\u003e\n* PR: gh-132120\n\u003c!-- /gh-pr-number --\u003e\n","author":{"url":"https://github.com/msprotz","@type":"Person","name":"msprotz"},"datePublished":"2022-11-04T21:43:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":36},"url":"https://github.com/99108/cpython/issues/99108"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6e246c5c-0669-9c44-7ac6-627bb5fec494
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD5F2:F2B91:9F7C49:D573BE:6969922D
html-safe-noncec6526a898a8751a589506f21544a0fb994e67acf8bbe07d7b5829609c4843843
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUYyOkYyQjkxOjlGN0M0OTpENTczQkU6Njk2OTkyMkQiLCJ2aXNpdG9yX2lkIjoiMzA3NTI4MjA2NDE0MzY1MTM3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace891d0046fe5267e341535dc808480e077cde8cc782d250d2e37aa7fae7b07a0
hovercard-subject-tagissue:1436673526
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/99108/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7477ebfd86e25edf27f843a8061aaa96dba24ddfea12db9bbc4023ba249d28c9/python/cpython/issues/99108
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7477ebfd86e25edf27f843a8061aaa96dba24ddfea12db9bbc4023ba249d28c9/python/cpython/issues/99108
og:image:altFeature or enhancement We propose to replace the non-OpenSSL cryptographic primitives in hashlib with high-assurance, verified versions from the HACL* project. Pitch As evidenced by the recent SHA3...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemsprotz
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/99108#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F99108
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%2F99108
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/99108
Reloadhttps://github.com/python/cpython/issues/99108
Reloadhttps://github.com/python/cpython/issues/99108
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/99108
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/99108
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/99108
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/99108
Replace built-in hashlib with verified implementations from HACL*https://github.com/python/cpython/issues/99108#top
https://github.com/gpshead
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/msprotz
https://github.com/msprotz
msprotzhttps://github.com/msprotz
on Nov 4, 2022https://github.com/python/cpython/issues/99108#issue-1436673526
https://github.com/hacl-star/hacl-starhttps://github.com/hacl-star/hacl-star
https://hacl-star.github.io/Overview.html#what-is-verified-softwarehttps://hacl-star.github.io/Overview.html#what-is-verified-software
@alexhttps://github.com/alex
gh-99108: Import SHA2-224 and SHA2-256 from HACL* #99109https://github.com/python/cpython/pull/99109
gh-99108: Import SHA2-384/512 from HACL* #101707https://github.com/python/cpython/pull/101707
gh-99108: Build the hashlib HACL* code as a static library. (fix wasm builds) #101917https://github.com/python/cpython/pull/101917
gh-99108: Refactor _sha256 & _sha512 into _sha2. #101924https://github.com/python/cpython/pull/101924
gh-99108: Import MD5 and SHA1 from HACL* #102089https://github.com/python/cpython/pull/102089
gh-99108: Followup fix for Modules/Setup #102183https://github.com/python/cpython/pull/102183
gh-99108: Add missing md5/sha1 defines to Modules/Setup #102308https://github.com/python/cpython/pull/102308
gh-99108: Initial import of HACL-SHA3 into Python #103597https://github.com/python/cpython/pull/103597
gh-99108: fix typo in Modules/Setup #104293https://github.com/python/cpython/pull/104293
gh-99108: Refresh HACL* from upstream #104401https://github.com/python/cpython/pull/104401
gh-99108: Release the GIL around hashlib built-in computation #104675https://github.com/python/cpython/pull/104675
[3.12] gh-99108: Release the GIL around hashlib built-in computation (GH-104675) #104776https://github.com/python/cpython/pull/104776
gh-99108: Refresh HACL* #104808https://github.com/python/cpython/pull/104808
[3.12] gh-99108: Refresh HACL* (GH-104808) #104893https://github.com/python/cpython/pull/104893
gh-99108: Mention HACL\* in the hashlib docs. #105634https://github.com/python/cpython/pull/105634
[3.12] gh-99108: Mention HACL\* in the hashlib docs. (GH-105634) #105635https://github.com/python/cpython/pull/105635
gh-99108: Refresh HACL*; update modules accordingly; fix namespacing #117237https://github.com/python/cpython/pull/117237
[3.12] gh-99108: Refresh HACL*; update modules accordingly; fix namespacing (GH-117237) #117243https://github.com/python/cpython/pull/117243
gh-99108: Update and check HACL* version information #117295https://github.com/python/cpython/pull/117295
[3.12] gh-99108: Update and check HACL* version information (GH-117295) #117302https://github.com/python/cpython/pull/117302
gh-99108: Add HACL* Blake2 implementation to hashlib #119316https://github.com/python/cpython/pull/119316
gh-99108: Inform HACL when explicit_bzero is unavailable #123027https://github.com/python/cpython/pull/123027
GH-99108: Fix Setup in addition to Setup.stdlib.in #123146https://github.com/python/cpython/pull/123146
gh-99108: Disable HACL SIMD code on older versions of Android #124304https://github.com/python/cpython/pull/124304
GH-99108: Make vectorized versions of Blake2 available on x86, too #125244https://github.com/python/cpython/pull/125244
gh-99108: Cleanup references to inexisting Modules/_blake2. #126270https://github.com/python/cpython/pull/126270
gh-99108: add HACL*-based 1-shot HMAC implementation  #126359https://github.com/python/cpython/pull/126359
gh-99108: Implement HACL* HMAC #130157https://github.com/python/cpython/pull/130157
gh-99108: add support for SIMD-accelerated HMAC-BLAKE2 #132120https://github.com/python/cpython/pull/132120
gpsheadhttps://github.com/gpshead
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%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.