-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ephemeral key allocator to FabricTable (#20082)
* Add ephemeral key allocator to FabricTable - CASE requires P256 ephemeral keys - CASE had a hack whereby "single slots" ephemeral keys for NXP HSM were used, which cannot work for multiple CASE session establishments - Using raw P256Keypair prevents being able to use OS-backed or HW-backed keys, like can be done for operational keys Issue #20036 This PR: - Adds a way to get CASE ephemeral keys from the OperationalKeystore abstraction - Funnels their access via the FabricTable - Removes some HSM hacks (cannot remove all HSM usage just yet) in a way that now OperationalKeystore targeting NXP HSM could do the right thing Testing done: - Unit tests still pass - Integration tests still passa - Added unit tests to validate usage of new APIs - Ran valgrind on the unit tests, found no leaks * Restyled by clang-format * Apply review comments * Apply review comment from @bzbarsky-apple * Better document usage * Remove a test member that was added during debug of a prior CI run Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
Showing
12 changed files
with
201 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.