Skip to content
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

DeviceKey Root of Trust not generated #71

Closed
LDong-Arm opened this issue Apr 15, 2021 · 3 comments · Fixed by #72
Closed

DeviceKey Root of Trust not generated #71

LDong-Arm opened this issue Apr 15, 2021 · 3 comments · Fixed by #72

Comments

@LDong-Arm
Copy link
Contributor

Description of defect

When running this example on a board with TRNG, and if the board's flash doesn't contain a Root of Trust already, the example fails:

--- Error, derive key failed with error code -5 ---

This is because the generation of Root of Trust is missing. Since ARMmbed/mbed-os#12385 was merged, the Root of Trust is not automatically generated anymore.

Target(s) affected by this defect ?

Any target with TRNG (e.g. DISCO_L475VG_IOT01A)

Toolchain(s) (name and version) displaying this defect ?

Any

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.9.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Any

How is this defect reproduced ?

Erase any existing DeviceKey Root of Trust (if any), then build and run this example on a DISCO_L475VG_IOT01A board (for example).

@LDong-Arm LDong-Arm self-assigned this Apr 15, 2021
LDong-Arm added a commit to LDong-Arm/mbed-os-example-devicekey that referenced this issue Apr 15, 2021
Since ARMmbed/mbed-os#12385:

    0e7a53c DeviceKey Root of Trust generation refactored.

the Root of Trust is not automatically generated anymore. We need to
generate or inject one explicitly.

This commit also improves the readability of the existing code for the
injection of Root of Trust.

Fixes ARMmbed#71
@ciarmcom
Copy link
Member

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3821

LDong-Arm added a commit to LDong-Arm/mbed-os-example-devicekey that referenced this issue Apr 15, 2021
Since ARMmbed/mbed-os#12385:

    0e7a53c DeviceKey Root of Trust generation refactored.

the Root of Trust is not automatically generated anymore. We need to
generate or inject one explicitly.

This commit also improves the readability of the existing code for the
injection of Root of Trust.

Fixes ARMmbed#71
@LDong-Arm
Copy link
Contributor Author

@LDong-Arm LDong-Arm linked a pull request Apr 15, 2021 that will close this issue
@Patater
Copy link
Contributor

Patater commented Apr 15, 2021

Fixed by #72

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

Successfully merging a pull request may close this issue.

3 participants