ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

Is PSA mbed-crypto (using secure element) usable with TLSSocket / TLSSocketWrapper? #12608

Closed PietKnaak closed 4 years ago

PietKnaak commented 4 years ago

Description of defect

I got PSA with secure element functionality implemented using this repo as a reference: https://github.com/ARMmbed/mbed-os-example-atecc608a/tree/mbed-os-5.15

According to this document: https://os.mbed.com/docs/mbed-os/v5.15/porting/using-psa-enabled-mbed-tls.html#using-opaque-ecdsa-keys-for-tls-client-authentication

I need to replace mbedtls_pk_parse_key() and mbedtls_ssl_conf_own_cert() these are present in the TLSSocketWrapper class in the set_client_cert_key method.

Is it possible to implement TLSSocket functionality with PSA or do I need to patch this in myself?

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli

ciarmcom commented 4 years ago

Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2590

adbridge commented 4 years ago

@PietKnaak this is a question rather than a bug, could you please raise this on our forums. Github is for bugs only. Thank you.