Repository navigation
[release/10.0] Feature-detect KMAC key size limits - #137451
Merged
Merged
Conversation
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.
|
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
approved these changes
Nov 13, 2026
Member
|
Test-only change, marking servicing-approved. |
bartonjs
approved these changes
Nov 13, 2026
Open
3 tasks
Member
Author
|
/ba-g test failures are unrelated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #131424 to release/10.0
/cc @vcsjones
Customer Impact
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
Testing
This fixes existing tests on Azure Linux 4.
Risk
None. Test only changes.