Skip to content

[release/10.0] Feature-detect KMAC key size limits - #137451

Merged
ViveliDuCh merged 2 commits into
dotnet:release/10.0from
vcsjones:backport-131424
Nov 14, 2026
Merged

ViveliDuCh merged 2 commits into
dotnet:release/10.0from
vcsjones:backport-131424

Conversation

@vcsjones

@vcsjones vcsjones commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Backport of #131424 to release/10.0

/cc @vcsjones

Customer Impact

  • Customer reported
  • Found internally

This is a test only change to support our tests on Azure Linux 4. Azure Linux 4 changed how they handled KMAC key size validation. Identified in #137390 as part of updating .NET 10 infrastructure to run on Azure Linux 4.

Regression

  • Yes
  • No

Testing

This fixes existing tests on Azure Linux 4.

Risk

None. Test only changes.

KMAC on OpenSSL's default provider has key size limits, the key must be
in the range of [4, 512]. Windows does not have this limit, and
SymCrypt-OpenSSL does not have this limit, either.

Detecting the presence of which provider is the default is tricky; we
can look for a provider's presence on the system, but which is active is
not always clear, and sometimes one provider defers to another.

This changes our KMAC tests to do a check it see if can import a
zero-length key to determine the key size limits, rather than trying to
detect provider presence.
@vcsjones vcsjones added this to the 10.0.x milestone Nov 12, 2026
@vcsjones
vcsjones requested a review from bartonjs November 12, 2026 20:27
@vcsjones vcsjones self-assigned this Nov 12, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@bartonjs bartonjs added the Servicing-approved Approved for servicing release label Nov 13, 2026
@bartonjs

Copy link
Copy Markdown
Member

Test-only change, marking servicing-approved.

@vcsjones

Copy link
Copy Markdown
Member Author

/ba-g test failures are unrelated

@ViveliDuCh
ViveliDuCh merged commit 0b9b3cf into dotnet:release/10.0 Nov 14, 2026
95 of 100 checks passed
@vcsjones
vcsjones deleted the backport-131424 branch November 14, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Security Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants