-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ICD] Implement storing of persistent keys in PSA for ICD server #34925
Conversation
Review changes with SemanticDiff. |
PR #34925: Size comparison from 3b90fed to 0c8a91e Full report (5 builds for cc32xx, stm32, tizen)
|
0c8a91e
to
0eeae75
Compare
d97f8fa
to
1616225
Compare
PR #34925: Size comparison from c552dda to 1616225 Full report (88 builds for bl602, bl702, bl702l, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
e3687d9
to
85eae56
Compare
PR #34925: Size comparison from 30cff8e to 85eae56 Full report (88 builds for bl602, bl702, bl702l, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of final nits and suggestions but looks good overall.
e88a54a
to
1baec8b
Compare
PR #34925: Size comparison from 22db90a to 1baec8b Full report (44 builds for bl602, bl702, bl702l, nrfconnect, stm32, telink, tizen)
|
Implement `keyAttributesBase` and add persistent lifetime functionality.
If entry is not found its key handle field must not be filled with last checked entry when using PSA as it will cause key slot to be cleared by accident.
1baec8b
to
cb16562
Compare
PR #34925: Size comparison from 0adae42 to cb16562 Full report (90 builds for bl602, bl702, bl702l, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
cb16562
to
d991fb5
Compare
Modify implementation of `PersistICDKey` not to depend on type of ICD key handle (AES, HMAC)
d991fb5
to
cc7a642
Compare
PR #34925: Size comparison from ba9faf2 to cc7a642 Full report (93 builds for bl602, bl702, bl702l, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
…ject-chip#34925) * Refactor Key Attributes classes Implement `keyAttributesBase` and add persistent lifetime functionality. * Implement `FindFreeKeySlotInRange` for PSA key slots * Fix ICD CIP related build dependencies * Remake `ICDMonitoringTable::Find()` not to overwrite all entry fields If entry is not found its key handle field must not be filled with last checked entry when using PSA as it will cause key slot to be cleared by accident. * Add ICD CIP and DAC key slots for PSA * Implement `PersistICDKey` API * Implement setting key persitence for ICD server * Address PR comments Modify implementation of `PersistICDKey` not to depend on type of ICD key handle (AES, HMAC)
Description
Previously keys for ICD server were store as volatile keys in PSA, causing failures in Check-In Protocol after device reboot. This PR implements storing of persistent keys in PSA for ICD server.
keyAttributesBase
and add persistent lifetime functionality.FindFreeKeySlotInRange
for PSA key slotsTesting
Tested on nRF52840 DK with PSA Crypto API enabled