I am looking for an explanation how to protect an algorithm say a function mysort(param x, param y)
in the context of Intel SGX such that outside my enclave mysort() function is encrypted and it only decrypts inside enclave.
How could I achieve this ? Where should I write mysort
function i.e. in the enclave project or app project and call through edl interface.
How should I encrypt it, where should I keep the key and the logic to decrypt it.