Skip to content

Generate DeviceKey RoT for all non-internal storage type#67

Open
LDong-Arm wants to merge 1 commit into
ARMmbed:developmentfrom
LDong-Arm:fix-TDB_EXTERNAL_NO_RBP
Open

Generate DeviceKey RoT for all non-internal storage type#67
LDong-Arm wants to merge 1 commit into
ARMmbed:developmentfrom
LDong-Arm:fix-TDB_EXTERNAL_NO_RBP

Conversation

@LDong-Arm

@LDong-Arm LDong-Arm commented Nov 30, 2020

Copy link
Copy Markdown
Contributor

Corrects #66

Both TDB_EXTERNAL and FILESYSTEM are based on SecureStore, which depends on DeviceKey which requires a Root of Trust (RoT) being present. In other words, we need to generate an RoT in all cases other than TDB_INTERNAL.

@ARMmbed/mbed-os-core

All external TDB and filesystem storage types for KV global API
are based on SecureStore, which depends on DeviceKey which
requires a Root of Trust (RoT) being present.
@LDong-Arm

Copy link
Copy Markdown
Contributor Author

@ARMmbed/mbed-os-core This PR has been open for a while, but it would be good to have it reviewed.

Comment thread main.cpp
printf("kv_reset -> %d\n", err_code(res));

if (strcmp(STR(MBED_CONF_STORAGE_STORAGE_TYPE), "TDB_EXTERNAL") == 0) {
if (strcmp(STR(MBED_CONF_STORAGE_STORAGE_TYPE), "TDB_INTERNAL") != 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the intention the same originally but with an incorrect condition?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original condition was incomplete. The condition should be "anything except TDB_INTERNAL", which includes both TDB_EXTERNAL and FILESYSTEM.

@hugueskamba hugueskamba Mar 31, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the intention was the same?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original condition was incomplete.

How did you complete the condition? It [the condition] is now the opposite of what it was before?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not the opposite. Notice TDB_EXTERNAL, == before, and TDB_INTERNAL, != now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I didnt notice INTERNAL...

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants