-
Notifications
You must be signed in to change notification settings - Fork 3k
Update Mbed OS with Mbed Crypto merged into Mbed TLS #12757
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
Conversation
@dgreen-arm, thank you for your changes. |
I set this to try first run CI, but due to the CI load, t his might get in about 2-3 days. |
Test run: FAILEDSummary: 3 of 3 test jobs failed Failed test jobs:
|
CI lts not related to this PR, will be cleared and proper CI restarted after 5.15 PRs are all integrated |
354541c
to
bc9b173
Compare
CI restarted |
Test run: FAILEDSummary: 3 of 3 test jobs failed Failed test jobs:
|
@@ -0,0 +1,175 @@ | |||
/* | |||
* PSA crypto core internal interfaces |
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.
Any idea why this isn't being picked up as a move/rename by git? Was it actually not present in Mbed OS before? Or did we forget to remove the old copy? (in commit "Update Mbed TLS to latest version")
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.
I think I might have made a mistake when updating the Makefile. There look to be two copies of this file (and the others you've pointed this out on) now, one in src
and one in platform/COMPONENT_PSA_SRV_IMPL
. Is there something I missed with the Makefile changes?
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.
If the Makefile places this in a new location, you'll have to manually delete it using git. The Makefile won't run git to add or remove files.
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.
I think I've worked it out, I had combined the Makefiles badly so I was duplicating all the PSA specific headers. There shouldn't be duplicated files now.
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.
crypto_compat.h
still seems to be deleting and remaking, rather than doing a move, not sure why. Maybe the file changed too much?
@@ -0,0 +1,79 @@ | |||
/** | |||
* \file psa_crypto_invasive.h |
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.
Shouldn't we see this as a move/rename?
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.
Fixed.
@@ -0,0 +1,144 @@ | |||
/** \file psa_crypto_its.h |
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.
Shouldn't we see this as a move/rename?
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.
Fixed.
features/mbedtls/src/psa_crypto_se.h
Outdated
@@ -0,0 +1,190 @@ | |||
/* | |||
* PSA crypto support for secure element drivers |
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.
Shouldn't we see this as a move/rename?
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.
Fixed.
* This file is part of mbed TLS (https://tls.mbed.org) | ||
*/ | ||
|
||
#ifndef PSA_CRYPTO_SERVICE_INTEGRATION_H |
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.
Shouldn't we see this as a move/rename?
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.
Fixed.
@@ -0,0 +1,129 @@ | |||
/* | |||
* PSA crypto layer on top of Mbed TLS crypto |
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.
Shouldn't we see this as a move/rename?
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.
Fixed.
@@ -0,0 +1,390 @@ | |||
/** | |||
* \file psa_crypto_storage.h |
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.
Shouldn't we see this as a move/rename?
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.
Fixed.
bc9b173
to
7aabfa6
Compare
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.
LGTM
is this still WIP? I'll review shortly |
It looks no longer WIP to me. @dgreen-arm Could you comment what testing you've done with this? Thanks. |
I've tested it against the following: I've also run it in the Mbed TLS release job here: https://jenkins-internal.mbed.com/job/mbedtls-release-new/732/ |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
@dgreen-arm the latest PSA removal PR created conflicts here. Can you please rebase, we will restart tests |
Mbed Crypto has been remerged back into Mbed TLS. Update the Mbed TLS importer script with the relevant parts of the Mbed Crypto importer. Signed-off-by: Darryl Green <darryl.green@arm.com>
As Mbed Crypto has been remerged into Mbed TLS, remove Mbed Crypto at the same time. Signed-off-by: Darryl Green <darryl.green@arm.com>
Signed-off-by: Darryl Green <darryl.green@arm.com>
Signed-off-by: Darryl Green <darryl.green@arm.com>
Signed-off-by: Darryl Green <darryl.green@arm.com>
Signed-off-by: Darryl Green <darryl.green@arm.com>
Signed-off-by: Darryl Green <darryl.green@arm.com>
50f5d77
to
7fbc143
Compare
I've rebased the PR, conflicts should be resolved now. |
CI started |
Test run: FAILEDSummary: 1 of 6 test jobs failed Failed test jobs:
|
Summary of changes
Update Mbed TLS to a version that brings in Mbed Crypto remerged into Mbed TLS.
Remove Mbed Crypto.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers