Skip to content

Fix PSA internal storage configuration #8908

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

Merged
merged 4 commits into from
Dec 4, 2018
Merged

Fix PSA internal storage configuration #8908

merged 4 commits into from
Dec 4, 2018

Conversation

alzix
Copy link
Contributor

@alzix alzix commented Nov 29, 2018

Description

Fix PSA internal storage configuration.
Explicitly request for internal flash TDBStore instance instead of default KVStore instance.

CC @dannybenor @danny4478

Pull request type

[X] Fix
[X] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@orenc17
Copy link
Contributor

orenc17 commented Dec 4, 2018

@alzix rebase ontop of master so traivs will pass and maybe we'll be able to get this into rc2

@alzix
Copy link
Contributor Author

alzix commented Dec 4, 2018

rebased on master

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 4, 2018

One code style change proposed in the failing astyle, then it should all be ok in travis

Alexander Zilberkant added 4 commits December 4, 2018 14:08
Use internal TDBStore instance instead of default one
PID should come first to create - to prevent timing attacks. Each partition can only request its own files. Thus starting lookup from the PID makes more sence.
PSA PID is of int32_t type - use native type during the whole flow for better readability.
Convert PID to unsigned for calculations only.
Add dedicated inline function for logic shift right.
@orenc17
Copy link
Contributor

orenc17 commented Dec 4, 2018

@0xc0170

  • astyle fixed
  • rebased on master

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 4, 2018

CI started

Note, this one is still labeled for 5.11.1 (rc2 not ?)

@orenc17
Copy link
Contributor

orenc17 commented Dec 4, 2018

rc2

@mbed-ci
Copy link

mbed-ci commented Dec 4, 2018

Test run: SUCCESS

Summary: 4 of 4 test jobs passed
Build number : 1
Build artifacts
Build logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants