OP-TEE / optee_os

Trusted side of the TEE
Other
1.55k stars 1.05k forks source link

Secure storage from PTA #6968

Closed ayuser123 closed 1 week ago

ayuser123 commented 1 month 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 1 month 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 1 week 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.