mbedtls_platform_setup and psa_crypto_init #24

Open
opened 2019-01-25 06:48:30 -06:00 by gilles-peskine-arm · 2 comments
gilles-peskine-arm commented 2019-01-25 06:48:30 -06:00 (Migrated from github.com)

Description

Work out how mbedtls_platform_setup() and psa_crypto_init() should interact.

See discussion at https://github.com/ARMmbed/mbed-os-example-tls/pull/232#discussion_r249813184

Some scenarios to consider:

  • As an application writer, I'm using Mbed TLS for TLS and I don't care about Mbed Crypto.
  • As an application writer, I'm using the PSA crypto API and I don't care about how it's implemented.
  • As an application writer, I'm combining one module that uses Mbed TLS and one that uses PSA crypto.
  • … and my application is multithreaded.
  • As an operating system integrator, I provide my own version of mbedtls_platform_setup.
  • As a device integrator, I'm using Mbed OS and I don't care what various bits may be doing under the hood.

Issue request type

[ ] Question
[X] Enhancement
[ ] Bug
<!-- ************************************** WARNING ************************************** The ciarcom bot parses this header automatically. Any deviation from the template may cause the bot to automatically correct this header or may result in a warning message, requesting updates. Please ensure that nothing follows the Issue request type section, all issue details are within the Description section and no changes are made to the template format (as detailed below). ************************************************************************************* --> ### Description Work out how `mbedtls_platform_setup()` and `psa_crypto_init()` should interact. See discussion at https://github.com/ARMmbed/mbed-os-example-tls/pull/232#discussion_r249813184 Some scenarios to consider: * As an application writer, I'm using Mbed TLS for TLS and I don't care about Mbed Crypto. * As an application writer, I'm using the PSA crypto API and I don't care about how it's implemented. * As an application writer, I'm combining one module that uses Mbed TLS and one that uses PSA crypto. * … and my application is multithreaded. * As an operating system integrator, I provide my own version of `mbedtls_platform_setup`. * As a device integrator, I'm using Mbed OS and I don't care what various bits may be doing under the hood. ### Issue request type <!-- Required Please add only one X to one of the following types. Do not fill multiple types (split the issue otherwise.) Please note this is not a GitHub task list, indenting the boxes or changing the format to add a '.' or '*' in front of them would change the meaning incorrectly. The only changes to be made are to add a description text under the description heading and to add a 'x' to the correct box. --> [ ] Question [X] Enhancement [ ] Bug
ciarmcom commented 2019-01-25 07:07:19 -06:00 (Migrated from github.com)

Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-645

*Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-645*
adbridge commented 2019-11-04 06:55:00 -06:00 (Migrated from github.com)

Apologies, this was closed in error by the automated bot - re-opening.

Apologies, this was closed in error by the automated bot - re-opening.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ARMmbed/mbed-crypto#24
No description provided.