Closed Kailai-Wang closed 1 year ago
Tried aes-gcm
with 128-bit key => didn't work either
Next alternative: https://docs.rs/ring/latest/ring/aead/index.html
Fallback solution: native 128-bit aes-gcm from SDK
@jingleizhang mentions maybe increasing the enclave resource (RAM/Heap) helps -- we should try it.
@jingleizhang It doesn't work with increasing the enclave resource as @Kailai-Wang tried it. After a quick alignment with @Kailai-Wang , we will try out the ring
alternative mentioned above.
Yes I've tried the following and it didn't work:
StackMaxSize
and HeapMaxSize
to 64MB
<StackMaxSize>0x4000000</StackMaxSize>
<HeapMaxSize>0x4000000</HeapMaxSize>
+aes
to the -C target-feature
when compiling the enclave
We found that encrypting using the user's shielding key (AES-GCM 256) in HW mode would cause the enclave to crash:
The error is triggered by: https://github.com/litentry/tee-worker/blob/f87dbb353490866f2c33bef19bb33c896c0574d7/app-libs/stf/src/helpers.rs#L132
It works in SW mode.