-
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.
Introduce CommissionableDataProvider for discriminator and verifier (#…
…16020) * Introduce CommissionableDataProvider for discriminator and verifier - Current API in ConfigurationManager makes it very hard to provide spec-mandated per-device SPAKE2+ parameters (verifier, salt, iteration counts) and discovery discriminator, since it expects "in-app" common SDK handling of the data for something that actually usually comes from the factory. This PR does the following: - Adds CommissionableDataProvider interface, of which an instance is known to the ConfigurationManager. - Adds a legacy path to avoid requiring setting a CommissionableDataProvider in the short term - A linux implementation of CommissionableDataProvider showcasing providing externally generated SPAKE2+ verifier/salt/iterations - Refactoring of all direct usage of ConfigurationManager to get discriminator/SPAKE2+ parameters Testing done: - Cert tests still pass with no change - All unit tests still pass, including those modified - Setting GN arg `chip_use_transitional_commissionable_data_provider=0` properly causes targets that don't provide an implementation from running. - Manually verified the new Linux command-line arguments to all-clusters-app allow passing custom version of verifier or iteration counts. Fixes #15543 * Restyled by clang-format * Restyled by gn * Fix PRIu32 * Fix more presubmit rework failures * Fix one missing override * Address review comments * Restyled by clang-format * Fix more CI, do more renames * Restyled by clang-format * Address review comments * Restyled by clang-format * Restyled by gn * Fix doxygen stuff * Fix fake ConfigurationaManagerImpl.h * Fix cirque * Address review comments from PR #16020 * Fix CI after refactor based on review comments Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
1 parent
31037c1
commit 8f86c43
Showing
38 changed files
with
1,161 additions
and
285 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
Oops, something went wrong.