René's URL Explorer Experiment


Title: Support GMAC and multiple AAD chunks for AEAD · Issue #48314 · nodejs/node · GitHub

Open Graph Title: Support GMAC and multiple AAD chunks for AEAD · Issue #48314 · nodejs/node

X Title: Support GMAC and multiple AAD chunks for AEAD · Issue #48314 · nodejs/node

Description: What is the problem this feature will solve? Node.js only allows a single call to setAAD() for AEAD algorithms. AAD that consists of multiple chunks must be concatenated in memory before it can be passed to setAAD(), which is highly inef...

Open Graph Description: What is the problem this feature will solve? Node.js only allows a single call to setAAD() for AEAD algorithms. AAD that consists of multiple chunks must be concatenated in memory before it can be ...

X Description: What is the problem this feature will solve? Node.js only allows a single call to setAAD() for AEAD algorithms. AAD that consists of multiple chunks must be concatenated in memory before it can be ...

Opengraph URL: https://github.com/nodejs/node/issues/48314

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support GMAC and multiple AAD chunks for AEAD","articleBody":"### What is the problem this feature will solve?\n\nNode.js only allows a single call to `setAAD()` for AEAD algorithms. AAD that consists of multiple chunks must be concatenated in memory before it can be passed to `setAAD()`, which is highly inefficient.\r\n\r\nGMAC is a MAC algorithm based on AES-GCM that consumes the entire input data as AAD and leaves the plaintext/ciphertext empty. The AES-GCM authentication tag is the MAC produced by GMAC. Implementing GMAC on top of Node.js again requires concatenating all input data in memory before calling `setAAD()`.\n\n### What is the feature you are proposing to solve the problem?\n\nExtend the API to allow appending multiple chunks of AAD. This is common practice and supported by various cryptographic libraries, including OpenSSL.\r\n\r\nWe should consider carefully if such an extension should be a separate `WritableStream` or if a simpler API makes more sense.\n\n### What alternatives have you considered?\n\nConcatenating all data in memory before passing it to `setAAD()`.\r\n\r\nMy primary use case for multiple calls to `setAAD()` is GMAC, so a separate GMAC API (similar to the existing [HMAC API](https://nodejs.org/docs/latest-v18.x/api/crypto.html#cryptocreatehmacalgorithm-key-options)) would also be sufficient for my purposes. However, it would leave a gap between AES-GCM and GMAC for those rare use cases that have multiple chunks of AAD and a non-empty plaintext/ciphertext.\r\n\r\nOn a side note, I preliminarily decided against adding streaming support for AAD in https://github.com/wintercg/proposal-webcrypto-streams, see [this section of the explainer](https://github.com/wintercg/proposal-webcrypto-streams/blob/31630ad4581e594f84e511aaaeae376bd8628fc0/explainer.md#additional-data-in-aead-ciphers). However, that is mostly due to the API constraints of the Web Crypto API.","author":{"url":"https://github.com/tniessen","@type":"Person","name":"tniessen"},"datePublished":"2023-06-03T10:00:00Z","url":"https://github.com/nodejs/node/issues/48314"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:49b987ad-05ab-8cb2-a059-3c7e0535380f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA7CA:203847:2CD06:3B80A:6AED3075
html-safe-noncef169bad10b41c0b7e30610b61e5b6633624a0c0d7de041e8619bb80636e43f67
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0NBOjIwMzg0NzoyQ0QwNjozQjgwQTo2QUVEMzA3NSIsInZpc2l0b3JfaWQiOiI2MjQ3MDcwODgxMDA5NjI0MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacef4e0d19b85fd7aba1dbd51c3e77941008b7c14547483b7052f9f59630e9b498
hovercard-subject-tagissue:1739345184
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/nodejs/node/48314/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a140eb1bc68435b4f13f62538c83e8d4efae186a518860513dbffadbb2d0e529/nodejs/node/issues/48314
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a140eb1bc68435b4f13f62538c83e8d4efae186a518860513dbffadbb2d0e529/nodejs/node/issues/48314
og:image:altWhat is the problem this feature will solve? Node.js only allows a single call to setAAD() for AEAD algorithms. AAD that consists of multiple chunks must be concatenated in memory before it can be ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametniessen
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
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
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/48314#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F48314
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F48314
Sign uphttps://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=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/48314
Reloadhttps://github.com/nodejs/node/issues/48314
Reloadhttps://github.com/nodejs/node/issues/48314
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/48314
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/48314
Support GMAC and multiple AAD chunks for AEADhttps://github.com/nodejs/node/issues/48314#top
cryptoIssues and PRs related to the crypto subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22crypto%22
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com/tniessen
tniessenhttps://github.com/tniessen
on Jun 3, 2023https://github.com/nodejs/node/issues/48314#issue-1739345184
HMAC APIhttps://nodejs.org/docs/latest-v18.x/api/crypto.html#cryptocreatehmacalgorithm-key-options
https://github.com/wintercg/proposal-webcrypto-streamshttps://github.com/wintercg/proposal-webcrypto-streams
this section of the explainerhttps://github.com/wintercg/proposal-webcrypto-streams/blob/31630ad4581e594f84e511aaaeae376bd8628fc0/explainer.md#additional-data-in-aead-ciphers
tniessenhttps://github.com/tniessen
cryptoIssues and PRs related to the crypto subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22crypto%22
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
on Jun 3, 2023https://github.com/nodejs/node/issues/48314#event-9420653895
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Jun 3, 2023https://github.com/nodejs/node/issues/48314#event-14568904908
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Jun 3, 2023https://github.com/nodejs/node/issues/48314
https://github.com/bnoordhuis
bnoordhuishttps://github.com/bnoordhuis
on Jun 5, 2023https://github.com/nodejs/node/issues/48314#issuecomment-1576534303
https://github.com/tniessen
tniessenhttps://github.com/tniessen
on Jun 5, 2023https://github.com/nodejs/node/issues/48314#issuecomment-1576586501
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Dec 3, 2023https://github.com/nodejs/node/issues/48314#issuecomment-1837302003
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Dec 3, 2023https://github.com/nodejs/node/issues/48314#event-11130152799
https://github.com/tniessen
tniessenhttps://github.com/tniessen
on Dec 3, 2023https://github.com/nodejs/node/issues/48314#issuecomment-1837467134
@bnoordhuishttps://github.com/bnoordhuis
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Dec 4, 2023https://github.com/nodejs/node/issues/48314#event-11133051198
tniessenhttps://github.com/tniessen
never-staleIssues and PRs exempt from automated stale handling.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22never-stale%22
on May 21, 2024https://github.com/nodejs/node/issues/48314#event-12882788606
panvahttps://github.com/panva
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Aug 26, 2026https://github.com/nodejs/node/issues/48314
panvahttps://github.com/panva
on Aug 28, 2026https://github.com/nodejs/node/issues/48314#event-30191985994
crypto: add a generic MAC APIhttps://github.com/nodejs/node/commit/1d8062421e558205e121c44796cdbae4f214c303
1d80624https://github.com/nodejs/node/commit/1d8062421e558205e121c44796cdbae4f214c303
test: use native builder for legacy SEA testshttps://github.com/nodejs/node/commit/249e6ff5b9d722bc2b062b69a80f7f16bf491121
249e6ffhttps://github.com/nodejs/node/commit/249e6ff5b9d722bc2b062b69a80f7f16bf491121
aduh95https://github.com/aduh95
on Aug 29, 2026https://github.com/nodejs/node/issues/48314#event-30208028069
crypto: add a generic MAC APIhttps://github.com/nodejs/node/commit/f4b158b41ec6e4c0a2917ba9145a34d1bbb90c39
f4b158bhttps://github.com/nodejs/node/commit/f4b158b41ec6e4c0a2917ba9145a34d1bbb90c39
https://github.com/panva
panvahttps://github.com/panva
on Aug 29, 2026https://github.com/nodejs/node/issues/48314#issuecomment-5465157762
#65553https://github.com/nodejs/node/pull/65553
@tniessenhttps://github.com/tniessen
panvahttps://github.com/panva
never-staleIssues and PRs exempt from automated stale handling.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22never-stale%22
on Aug 29, 2026https://github.com/nodejs/node/issues/48314#event-30221641041
aduh95https://github.com/aduh95
on Sep 3, 2026https://github.com/nodejs/node/issues/48314#event-30479875189
crypto: add a generic MAC APIhttps://github.com/nodejs/node/commit/93248801fa804b8f5a12d1169fac4be93305b7e7
9324880https://github.com/nodejs/node/commit/93248801fa804b8f5a12d1169fac4be93305b7e7
aduh95https://github.com/aduh95
on Sep 15, 2026https://github.com/nodejs/node/issues/48314#event-31161511519
crypto: add a generic MAC APIhttps://github.com/nodejs/node/commit/d414624dce0f27d62a12d663badbbf5076edcf1d
d414624https://github.com/nodejs/node/commit/d414624dce0f27d62a12d663badbbf5076edcf1d
panvahttps://github.com/panva
on Sep 19, 2026https://github.com/nodejs/node/issues/48314#event-31441206525
crypto: add a generic MAC APIhttps://github.com/panva/node/commit/faa99df1ea23f259ffac816bb832a8c08f462a84
faa99dfhttps://github.com/panva/node/commit/faa99df1ea23f259ffac816bb832a8c08f462a84
crypto: add a generic MAC APIhttps://github.com/panva/node/commit/9cbd7ca5f956bf4a35827f02d244ed65ed28ea65
9cbd7cahttps://github.com/panva/node/commit/9cbd7ca5f956bf4a35827f02d244ed65ed28ea65
crypto: add a generic MAC APIhttps://github.com/panva/node/commit/332d81d7d3155bd72a08e1344e1ada5b202d6938
332d81dhttps://github.com/panva/node/commit/332d81d7d3155bd72a08e1344e1ada5b202d6938
crypto: add a generic MAC APIhttps://github.com/panva/node/commit/c0e68aa1d673bbb58432a588d1915bcf0d3bdaa9
c0e68aahttps://github.com/panva/node/commit/c0e68aa1d673bbb58432a588d1915bcf0d3bdaa9
aduh95https://github.com/aduh95
on Sep 21, 2026https://github.com/nodejs/node/issues/48314#event-31519153829
crypto: add a generic MAC APIhttps://github.com/nodejs/node/commit/c162c68ff07d57dbd69315f8db6f291bc16ea3a9
c162c68https://github.com/nodejs/node/commit/c162c68ff07d57dbd69315f8db6f291bc16ea3a9
https://github.com/panva
panvahttps://github.com/panva
on Sep 23, 2026https://github.com/nodejs/node/issues/48314#issuecomment-5798525238
#65553https://github.com/nodejs/node/pull/65553
panvahttps://github.com/panva
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 23, 2026https://github.com/nodejs/node/issues/48314#event-31691658776
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/48314
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/48314
cryptoIssues and PRs related to the crypto subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22crypto%22
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
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.