Secure Storage Applications
Hi,
I have been exploring secure storage in OP-TEE for a few days and I need some help in putting some files into it.
I have been trying to find some tool which could help me put any files from Linux into secure storage and retrieve them back later so that I could see secure storage in action but haven't been able to find any yet.
Is there any tool which you guys might know of which helps put files in secure storage and retrieve them back later?
Best Regards,
Manorit
Hi Manorit,
Quoted 6 lines · Manorit Chawdhry
Hi,
I have been exploring secure storage in OP-TEE for a few days and I need some help in putting some files into it.
Quoted 7 lines
I have been trying to find some tool which could help me put any files from Linux into secure storage and retrieve them back later so that I could see secure storage in action but haven't been able to find any yet.
Is there any tool which you guys might know of which helps put files in secure storage and retrieve them back later?
I would suggest you have a look at storage tests from OP-TEE test suite here: client [1] and TA [2].
[1] https://github.com/OP-TEE/optee_test/blob/master/host/xtest/regression_6000.c
[2] https://github.com/OP-TEE/optee_test/tree/master/ta/storage
-Sumit
Quoted 2 lines
Best Regards,
Manorit
Hi,
Quoted 17 lines · Sumit Garg
Hi Manorit,
Quoted 6 lines · Manorit Chawdhry
Hi,
I have been exploring secure storage in OP-TEE for a few days and I need some help in putting some files into it.
Quoted 7 lines
I have been trying to find some tool which could help me put any files from Linux into secure storage and retrieve them back later so that I could see secure storage in action but haven't been able to find any yet.
Is there any tool which you guys might know of which helps put files in secure storage and retrieve them back later?
Quoted 6 lines
I would suggest you have a look at storage tests from OP-TEE test suite here: client [1] and TA [2].
[1] https://github.com/OP-TEE/optee_test/blob/master/host/xtest/regression_6000.c
[2] https://github.com/OP-TEE/optee_test/tree/master/ta/storage
In addition to that we also have the secure storage example TA [3], that comes deployed with our developer environments (QEMU [4] is an example of such an environment).
[3] https://github.com/linaro-swg/optee_examples/tree/master/secure_storage
[4] https://optee.readthedocs.io/en/latest/building/devices/qemu.html
Quoted 4 lines
-Sumit
Quoted 2 lines
Best Regards,
Manorit
// Regards,
Joakim
Quoted 2 lines · Joakim Bech
Hi,
Hi,
Thank you all for your replies. Those have been really helpful!
Though from all the links you have shared, I am still wondering if there is any core part in OP-TEE which could allow to provide a generic interface for using the secure storage functionality instead of we needing to setup our own TA ( along with some binary on the host with the simple purpose of putting files from Linux in secure storage. )
As this seemed somewhat intuitive to me from a perspective of user wanting to try out secure_storage and would be interested to know if something like this is available in it.
Thanks and regards,
Manorit
Quoted 38 lines · Sumit Garg
Quoted 17 lines
Hi Manorit,
Quoted 6 lines · Manorit Chawdhry
Hi,
I have been exploring secure storage in OP-TEE for a few days and I need some help in putting some files into it.
Quoted 7 lines
I have been trying to find some tool which could help me put any files from Linux into secure storage and retrieve them back later so that I could see secure storage in action but haven't been able to find any yet.
Is there any tool which you guys might know of which helps put files in secure storage and retrieve them back later?
Quoted 6 lines
I would suggest you have a look at storage tests from OP-TEE test suite here: client [1] and TA [2].
[1] https://github.com/OP-TEE/optee_test/blob/master/host/xtest/regression_6000.c
[2] https://github.com/OP-TEE/optee_test/tree/master/ta/storageIn addition to that we also have the secure storage example TA [3], that comes deployed with our developer environments (QEMU [4] is an example of such an environment).
[3] https://github.com/linaro-swg/optee_examples/tree/master/secure_storage
[4] https://optee.readthedocs.io/en/latest/building/devices/qemu.htmlQuoted 4 lines
-Sumit
Quoted 2 lines
Best Regards,
Manorit// Regards,
Joakim
Hi Manorit,
You may be interested in the Trusted Services project and its relation to OP-TEE.
This recent announcement on the op-tee mailing list describes an extension of OP-TEE with an additional feature:
https://lists.trustedfirmware.org/archives/list/op-tee(a)lists.trustedfirmware.org/thread/HCIYYT6BZ55L7AZNBDPUSP6TDPF3TCWV/
The key message in the linked wiki entry https://developer.trustedfirmware.org/w/trusted-services/op-tee-spmc/ from your perspective might be that OP-TEE now has a capability to run so called Trusted Services, which implement PSA Functional API, including, but not limited to, its Secure Storage API:
https://www.psacertified.org/development-resources/building-in-security/specifications-implementations/#functional-apis
This provides a client application with a generic interface for using secure storage functionality.
Please be mindful of the limitations mentioned on the linked page as this is project is still work in progress, but we would be more than happy to get feedback on what we have done, and whether it can meet your expectations.
Regards,
Miklos
-----Original Message-----
From: Manorit Chawdhry <[email protected]>
Sent: 23 February 2022 13:10
To: Joakim Bech <[email protected]>
Cc: op-tee(a)lists.trustedfirmware.org; p.yadav(a)ti.com
Subject: Re: Secure Storage Applications
Quoted 2 lines · Joakim Bech
Hi,
Hi,
Thank you all for your replies. Those have been really helpful!
Though from all the links you have shared, I am still wondering if there is any core part in OP-TEE which could allow to provide a generic interface for using the secure storage functionality instead of we needing to setup our own TA ( along with some binary on the host with the simple purpose of putting files from Linux in secure storage. )
As this seemed somewhat intuitive to me from a perspective of user wanting to try out secure_storage and would be interested to know if something like this is available in it.
Thanks and regards,
Manorit
Quoted 42 lines · Sumit Garg
Quoted 17 lines
Hi Manorit,
Quoted 6 lines · Manorit Chawdhry
Hi,
I have been exploring secure storage in OP-TEE for a few days and I need some help in putting some files into it.
Quoted 7 lines
I have been trying to find some tool which could help me put any
files from Linux into secure storage and retrieve them back later
so that I could see secure storage in action but haven't been able to find any yet.Is there any tool which you guys might know of which helps put files in secure storage and retrieve them back later?
Quoted 8 lines
I would suggest you have a look at storage tests from OP-TEE test suite here: client [1] and TA [2].
[1]
https://github.com/OP-TEE/optee_test/blob/master/host/xtest/regression_6000.c[2]
https://github.com/OP-TEE/optee_test/tree/master/ta/storageIn addition to that we also have the secure storage example TA [3], that comes deployed with our developer environments (QEMU [4] is an example of such an environment).
[3]
https://github.com/linaro-swg/optee_examples/tree/master/secure_storag
e [4]
https://optee.readthedocs.io/en/latest/building/devices/qemu.htmlQuoted 4 lines
-Sumit
Quoted 2 lines
Best Regards,
Manorit// Regards,
Joakim