-
Notifications
You must be signed in to change notification settings - Fork 3k
Restructure cryptocell #13404
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
Restructure cryptocell #13404
Conversation
@gpsimenos, thank you for your changes. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
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.
Question for @ARMmbed/mbed-os-connectivity:
Here we treat cryptocell as an mbedtls dependency, thus it's moved into connectivity/drivers/mbedtls
. But it's also used by some PalCrypto*
functions in the Nordic Cordio BLE driver (link) that aren't called anywhere.
Do we really want cryptocell in BLE? Going forward, if we apply dependency restriction, the Nordic Cordio driver may assume cryptocell is available (if FEATURE_CRYPTOCELL310 is still defined) but its path will not be actually accessible?
.astyleignore
Outdated
@@ -3,7 +3,7 @@ | |||
^connectivity/libraries/mbed-coap | |||
^connectivity/libraries/ppp | |||
^connectivity/drivers/emac | |||
^features/cryptocell | |||
^connectivity/drivers/mbedtls/cryptocell |
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.
^connectivity/drivers/mbedtls/cryptocell | |
^connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310 |
@paul-szczepanek-arm suggests putting cryptocell in |
1076cab
to
2e1d0eb
Compare
Re-restructured to put cryptocell in |
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.
Move cryptocell
Please extend the commit message with a reason (just add details from the PR description)
@bulislaw Are you happy with cryptocell in |
2e1d0eb
to
a28bc09
Compare
Rebased. Commit message extended. |
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 if there's no objection from anyone towards the new path.
Let's run CI @0xc0170 |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
a28bc09
to
6598e54
Compare
Rebased. |
I'll start CI jobs on all PRs after one 5.15 job completes (should be within a hour or so) |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
I dont see this answered or anyone else. Fine with me |
Sorry for being late to the part, like always. It's not really a connectivity driver... it's a specifically HW acceleration for TLS, I'd prefer to keep it with TLS so people can actually find it. I wouldn't think to look for it in connectivity drivers. Not sure why wouldn't we have a drivers in tls? |
mbed-os/features/cryptocell/FEATURE_CRYPTOCELL310 directory moved to mbed-os/connectivity/drivers/cryptocell/FEATURE_CRYPTOCELL310 and restructured according to the internal proposal.
6598e54
to
a4fc83d
Compare
Un-re-restructured to put cryptocell back in |
@bulislaw Cryptocell is used in Cordio, so Mbed TLS is not the only component that uses it. The Cordio functions that use it are not used by Mbed OS BLE, but still if we switch to a new build system and Cryptocell becomes unavailable to Cordio, we can get build errors. |
crytpocell wasn't in mbedtls before and I don't think it's an element of mbedtls, it's just used by it but there's |
In a nutshell it's a crypto accelerator, it's not meant to be directly exposed to the users, but used via MbedTLS/Crypto. If it's used in BLE I'm ok to put it under connectivity/drivers/crypto or mbedtls. |
Agreed with Bartek, ultimately we'll have to move it out of connectivity - as it's crypto related. |
@0xc0170 Could you check, why the |
It shows up like this when CI hasn't been run since the last update. |
CI started |
Thanks for checking |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@0xc0170 CI passed for this PR, please merge |
Summary of changes
mbed-os/features/cryptocell/FEATURE_CRYPTOCELL310
directory moved tombed-os/connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310
and restructured according to the internal proposal.This is one of a series of PRs aiming to clean up the mbed-os directory structure. The intention is to create a consistent tree among mbed components, following the below structure:
Impact of changes
None
Migration actions required
None
Documentation
None
Pull request type
Test results
Reviewers
@evedon
@ashok-rao