linaro-swg / optee_examples

OP-TEE Sample Applications
Other
163 stars 140 forks source link

Example for TA - TA communication #108

Closed gunaMect closed 8 months ago

gunaMect commented 10 months ago

Hi,

I have tried out the example of Secure_Storage. With this example, I can store my data to the secure storage, which I verified in the /data/tee folder.

Is there any possibility to achieve TA - TA communication. Here, my use case is to transfer data from one TA to another TA.

If yes, can you share the example for the same? Thanks.

jforissier commented 10 months ago

Hi @gunaMect,

For TA-TA communication, one would typically use TEE_OpenTASession() etc. see https://github.com/OP-TEE/optee_os/blob/4.0.0/lib/libutee/include/tee_internal_api.h#L73. By design, a TA can not open secure storage created by another TA.

etienne-lms commented 10 months ago

Maybe having an example of TA-to-TA communication in optee_examples would help. If anyone is interested, contributions are welcome.

gunaMect commented 10 months ago

I will try to create a simple example for TA-TA communication and create a PR.

github-actions[bot] commented 9 months ago

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.