Hi,
First of all, thanks for this amazing project. I really feel like I'm standing on the shoulders of giants using it.
I am porting an existing SGX app to Graphene that uses the SGX_KEYPOLICY_MRENCLAVE policy using the sgx_seal_data_ex() method. I was looking into using Graphene's protected files as a replacement, but it seems that I must supply it with a secret wrap key to use to encrypt the files. My application aims to be as decentralized as possible, so I would prefer to encrypt data in the manner of the built in SGX sealing functionality instead of via a secret supplied by me or the user. This way, even the users running the application cannot manually unseal the data, and I cannot manually unseal it either. Only the enclave should be able to unseal it.
Does Graphene have any way to do this? Is it possible to use protected files and derive the wrap key from the enclave in the same manner as SGX_KEYPOLICY_MRENCLAVE?
Thank you