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

Introduce psa/crypto_driver.h #5464

Draft
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

gilles-peskine-arm
Copy link
Contributor

There should be a header file that declares the parts of the PSA Crypto API that's meant to be accessible to drivers, as well as some identifiers that are for drivers only. Add one to the driver specification draft, and create it in Mbed TLS.

Status: the header file is incomplete, it's still missing at least key attribute functions.

There is a new test suite. I deliberately didn't add it to tests/CMakeLists.txt. It will be handled via #5463.

Drivers need to have access to some declarations. Specify that they are made
available through the header file "psa/crypto_driver.h".

Specify that the following API elements are available to drivers: numerical
types and macros, key attributes.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Create the header file. Make it declare macros and types. Attribute accessor
functions and some Mbed TLS extensions are missing.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Check that a source file that includes the header builds correctly. Check
the presence of a couple of identifiers.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
We keep forgetting to register new test suites in tests/CMakeLists.txt. To
fix this problem once and for all, remove the need for manual registration.

The following test suites were missing:
  test_suite_cipher.aria
  test_suite_psa_crypto_driver_wrappers
  test_suite_psa_crypto_generate_key.generated

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
@gilles-peskine-arm gilles-peskine-arm added enhancement needs-work component-psa PSA keystore/dispatch layer (storage, drivers, …) size-s Estimated task size: small (~2d) labels Jan 25, 2022
@gilles-peskine-arm gilles-peskine-arm mentioned this pull request Jan 25, 2022
3 tasks
@daverodgman daverodgman added the priority-medium Medium priority - this can be reviewed as time permits label May 17, 2022
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 1, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 1, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 1, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 3, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 6, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 6, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 6, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Jun 6, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Aug 2, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Aug 3, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
febdoctor pushed a commit to silexinsight/mbedtls that referenced this pull request Aug 4, 2022
For PSA crypto drivers, pull request Mbed-TLS#5464 will add
PSA_DRIVER_GET_ENTROPY_BLOCK in a header in include/psa. To be
able to build and test, it's temporarily added in the internal
header file for PSA driver wrapper.

Signed-off-by: François Beerten <francois.beerten@silexinsight.com>
Signed-off-by: Francois Beerten <fbeerten.git@b10eng.com>
@tom-daubney-arm
Copy link
Contributor

As part of our review of historical PRs we have made the decision to convert older PRs that have not been updated in 3 months into drafts until they are worked on again.

@tom-daubney-arm tom-daubney-arm added the historical-reviewed Reviewed & agreed to keep legacy PR/issue label May 18, 2023
@tom-daubney-arm tom-daubney-arm marked this pull request as draft May 18, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-psa PSA keystore/dispatch layer (storage, drivers, …) enhancement historical-reviewed Reviewed & agreed to keep legacy PR/issue needs-work priority-medium Medium priority - this can be reviewed as time permits size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants