Skip to content

[release/11.0] Avoid validation algorithm allocation in ManagedAuthenticatedEncryptor - #69828

Merged
wtgodbe merged 1 commit into
release/11.0from
backport/pr-69789-to-release/11.0
Oct 14, 2026
Merged

wtgodbe merged 1 commit into
release/11.0from
backport/pr-69789-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #69789 to release/11.0

/cc @DeagleGross

Avoid validation algorithm allocation in ManagedAuthenticatedEncryptor

Description

Improves perf for most popular SHA256/SHA512 algorithms in order to workaround regression in #66536

Fixes #66536

Customer Impact

Perf regression of Antiforgery token validation and generation as the E2E scenario. Impacts ManagedAuthenticatedEncryptor in DataProtection which is a default implementation on Linux.

Regression?

  • Yes
  • No

regressed from 11.0.0-preview.4.26215.118

Risk

  • High
  • Medium
  • Low

A minor code manipulation to avoid allocation in the most popular case. Passed all tests.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

When servicing release/2.3

  • Make necessary changes in eng/PatchConfig.props

@wtgodbe
wtgodbe merged commit 65f4a5b into release/11.0 Oct 14, 2026
26 checks passed
@wtgodbe
wtgodbe deleted the backport/pr-69789-to-release/11.0 branch October 14, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants