forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: matter: Secure persistent storage implementation
* added abstract PersistentStorage interface * added the reference implementation of the interface * the implementation leverages two independent backends, settings and secure storage * added Kconfigs to allow for the backends to be compiled conditionally (in non mutually exclusive way) * adapted common cmake module * aligned Matter Bridge to use the new interface * fix FiniteMap includes * updated documentation and release notes Signed-off-by: Marcin Kajor <[email protected]>
- Loading branch information
1 parent
3302905
commit 12317ec
Showing
18 changed files
with
817 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
if NCS_SAMPLE_MATTER_PERSISTENT_STORAGE | ||
|
||
config NCS_SAMPLE_MATTER_SETTINGS_STORAGE_BACKEND | ||
bool "Settings based storage implementation for Matter samples" | ||
depends on SETTINGS | ||
default y | ||
|
||
config NCS_SAMPLE_MATTER_SECURE_STORAGE_BACKEND | ||
bool "Secure storage implementation for Matter samples" | ||
select TRUSTED_STORAGE | ||
select PSA_PROTECTED_STORAGE | ||
|
||
if NCS_SAMPLE_MATTER_SECURE_STORAGE_BACKEND | ||
|
||
config NCS_SAMPLE_MATTER_SECURE_STORAGE_MAX_ENTRY_NUMBER | ||
int "Maximum number of entries that can be stored securely" | ||
default 30 | ||
|
||
config NCS_SAMPLE_MATTER_SECURE_STORAGE_PSA_KEY_VALUE_OFFSET | ||
hex "The PSA key offset dedicated for Matter application" | ||
default 0x40000 | ||
|
||
config TRUSTED_STORAGE_BACKEND_AEAD_MAX_DATA_SIZE | ||
default 1024 | ||
|
||
endif | ||
|
||
endif |
Oops, something went wrong.