OP-TEE / optee_os

Trusted side of the TEE
Other
1.59k stars 1.07k forks source link

Secure storage from PTA #6968

Closed ayuser123 closed 2 months ago

ayuser123 commented 3 months ago

Hi, I'm trying to have a PTA store/read a persistent object. I understand the TEE API is not available for use from the PTA. In my attempt to use the functions in tee_svc_storage.c directly, I end up with a panic from "ts_get_current_session();"

What would the best approach be for doing this?
Are there any examples I could follow?

Thanks!

jforissier commented 3 months ago

Hi, I'm trying to have a PTA store/read a persistent object. I understand the TEE API is not available for use from the PTA.

Correct.

In my attempt to use the functions in tee_svc_storage.c directly, I end up with a panic from "ts_get_current_session();"

What would the best approach be for doing this? Are there any examples I could follow?

See for instance core/pta/attestation.c and, more specifically, sec_storage_obj_read() and sec_storage_obj_write().

github-actions[bot] commented 2 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.