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

Crypto platform renaming #9452

Merged
merged 2 commits into from
Jan 24, 2019
Merged

Conversation

RonEld
Copy link
Contributor

@RonEld RonEld commented Jan 22, 2019

Description

  1. Rename the generic name ctx of mbedtls_platform_context
    in platform_alt.c to a specific name plat_ctx, to avoid conflicts
    when used as external in crypto modules.
  2. To avoid collisions between the psa crypto_platform.h file and the
    platform specific crypto_platform.h file, for the init \ terminate
    functions, rename the latter to crypto_device_platform

Pull request type

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

Reviewers

@ARMmbed/mbed-os-crypto

Copy link
Contributor

@Patater Patater left a comment

Choose a reason for hiding this comment

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

Looks fine to me except for typos in the commit messages

@@ -24,5 +24,5 @@ To port your CC 310 driver to Mbed OS on your specific target, do the following:
1. In `features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_<target name>`, add your platform-specific libraries for all toolchains in `TOOLCHAIN_ARM`, `TOOLCHAIN_GCC_ARM` and `TOOLCHAIN_IAR` respectively.
1. Add your CC setup code:
* Implement `crypto_platform_setup()` and `crypto_platform_terminate()` to enable CC on your platform, in case you have board-specific setup functionality, required for CC setup. You MUST call 'SaSi_LibInit()` and 'SaSi_LibFini()' respectively in these functions.
* Define `crypto_platform_ctx` in `crypto_platform.h` in a way that suits your implementation.
* Define `crypto_platform_ctx` in `crypto_device_platform.h` in a way that suits your implementation.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any other documentation we need to update for this rename?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Raised ARMmbed/mbed-os-5-docs#929 to change the docc as well

Ron Eldor added 2 commits January 22, 2019 13:56
To avoid collisions between the psa `crypto_platform.h` file and the
platform specific `crypto_platform.h` file, for the init \ terminate
functions, rename the latter to `crypto_device_platform`.
Rename the generic name `ctx` of `mbedtls_platform_context`
in `platform_alt.c` to a specific name `plat_ctx`, to avoid conflicts
when used as external in crypto modules.
@RonEld
Copy link
Contributor Author

RonEld commented Jan 22, 2019

@Patater Thank you for your review.
I fixed the typos in the commit messages

@ciarmcom ciarmcom requested review from a team January 22, 2019 12:00
@ciarmcom
Copy link
Member

@RonEld, thank you for your changes.
@ARMmbed/mbed-os-tls @ARMmbed/mbed-os-crypto @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@yanesca yanesca left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@cmonr
Copy link
Contributor

cmonr commented Jan 23, 2019

CI started

@RonEld RonEld changed the title Crypto platform ranaming Crypto platform renaming Jan 23, 2019
@mbed-ci
Copy link

mbed-ci commented Jan 23, 2019

Test run: FAILED

Summary: 1 of 8 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC6

@alekla01
Copy link
Contributor

Restarted CI

@mbed-ci
Copy link

mbed-ci commented Jan 23, 2019

Test run: FAILED

Summary: 1 of 12 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_greentea-test

@cmonr cmonr merged commit e241b13 into ARMmbed:master Jan 24, 2019
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.

8 participants