Draft
Conversation
e871aae to
041ed35
Compare
Add host-based unit tests for TlsLib that validate TLS functionality in a provider-agnostic manner. Tests cover: - TLS function pointer availability (TlsInitialize, TlsCtxNew, TlsNew) - TLS context lifecycle (create/free, connection endpoint, version setting) - Firmware client-only assertion (server mode must return EFI_UNSUPPORTED) - DFCI/Intune required cipher suites hard-fail validation (ECDHE-RSA-AES-256-GCM, ECDHE-RSA-AES-128-GCM, ECDHE-RSA-AES-256-CBC, ECDHE-RSA-AES-128-CBC) - TLS 1.2 cipher suite enumeration (14 ciphers) - EC curve support probing (P-256, P-384, P-521, X25519, X448) - TLS 1.3 cipher suite probing - PQC hybrid key exchange group probing (X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024) Signed-off-by: Doug Flick <dougflick@microsoft.com>
ed5109e to
febab6c
Compare
Extract shared test suite definitions and CreateUnitTest() from UnitTestMainHost.c into TlsLibUnitTests.c so both Host and Shell entry points can reuse them. Add TestTlsLibApp.inf as a UEFI_APPLICATION and UnitTestMain.c as the DXE entry point. Signed-off-by: Doug Flick <dougflick@microsoft.com>
febab6c to
8975eb2
Compare
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.
Description
Host and Qemu based Tests that confirm if expected TLS behavior (and expected algorithms) are present and exposed.
This is to help prevent regressions with TLS.
For details on how to complete these options and their meaning refer to CONTRIBUTING.md.
How This Was Tested
<Describe the test(s) that were run to verify the changes.>
Integration Instructions
<Describe how these changes should be integrated. Use N/A if nothing is required.>