in your developer manual it is recommend that the memory region sgx_rijndael128_gcm should be inside the enclave memory just the encryption key should be inside the enclave.
Nervertheless I just want to encrypt inside the enclave but the input and output should be outside the enclave. I'm aware that the plaintext is therefore also in the untrusted part und unprotected.
My question is, if I use the pointer for the input and output buffer, which are outside the enclave (using the user_check in the ecall function etc.).
During the encryption, using the sgx_rijndael128GCM_encrypt function, will the output buffer used for intermediate results?
Is there the possibility of a key leakage if the output buffer can be monitored during the encrypiton process by an attacker?
Thanks in advance.
For more complete information about compiler optimizations, see our Optimization Notice.