I wonder if an enclave can be shared between 2 users, for example. One user creates the enclave and send the code and the other user sends data. If yes, how is the keys will be shared, as the first user will send the code encrypted using a key and the other user sends the data encrypted using the same key or different key, please?
From this query, when you say between 2 users i assume its between 2 different processes.This can be achieved by Signing the enclaves with the same MRSIGNER to generate a common seal key and share a seal blob to pass data.
Please refer this query for more information: