refactor(core): move session keys to platform secure storage#67
refactor(core): move session keys to platform secure storage#67Grolleau-Benjamin wants to merge 2 commits intoSTMicroelectronics:mainfrom
Conversation
c452b45 to
2f6a547
Compare
|
Branch is out-of-date with the base branch. |
5125dbe to
942bfc6
Compare
|
@TofMassilia13320 Maybe we should add a Discussions section to this repository, or create a Discord server to discuss this kind of change. It could also be useful to maintain a changelog. Your last change introduced a regression that could have been flagged through a proper changelog process (and I also introduced a huge regression in this PR). |
Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
4de1a70 to
99f3889
Compare
|
I've just rebased my branch on I also discovered the release notes ( Additionally, it might make more sense to maintain a classic Let me know what your thoughts are on this! |
|
Looking at the commits, I also believe that @Grom- would be interested in this discussion. |
Summary
Session keys are no longer kept in RAM. It is now up to the user to decide where they are stored, referencing them via a
uint32_tkey index.This improves security, enables backend-agnostic key management, and allows integration with PSA and TrustZone Secure Storage.
Changes
stse_platform_store_session_keyHost_MAC_key_idxandHost_cipher_key_idxSecurity
Note
STSELib remains backend-agnostic (no PSA assumption). The platform decides how keys are stored and used.