Re:ECCploit is the first Rowhammer attack to defeat error-co...
by BeeOnRope on Thursday November 22, 2018 @11:21AM
(#18510850)
TRESOR doesn't have anything to do with encrypting RAM - it's just a tweak to existing disk encryption methods which stores the encryption key in a debug register, rather than RAM. This gives resistance against attackers trying to break your disk encryption by trying to read your key directly from RAM.
> That [encrypted memory] in itself isn't sufficient to guard against all attacks
You might want to read about authenticated encryption [2]. The authenticity of the decrypted data often lies in the block cipher mode (for example OBS) rather than the block primitive, where Tresor uses the AES-NI instruction. I would imagine SGX does something along the same lines.
[1] https://www.usenix.org/legacy/event/sec11/tech/full_papers/M...
[2] https://en.wikipedia.org/wiki/Authenticated_encryption