by kop316 · 6y ago · 0 comments
I have been reading though all of AMD's documents, and I cannot find what mode of AES that SEV (or SME) uses. I find it extremely odd that this is not called out in any of AMD's documents, and frankly a bit worrisome.
For the record, "A Comparison Study of Intel SGX and AMD Memory Encryption" [1] claims a modified version of AES-ECB is what SEV uses, BUT their reference links to AMD's whitepaper [2], which does NOT say anything about their mode, so I do not consider [1] to be a trustworty resouce.
[1] https://caslab.csl.yale.edu/workshops/hasp2018/HASP18_a9-mof...
[2] https://developer.amd.com/wordpress/media/2013/12/AMD_Memory...
[1] https://ctf-wiki.github.io/ctf-wiki/crypto/blockcipher/mode/...
Two subtle but important features of these modes are:
1. the tweak is xored both before and after the permutation
2. the tweak is derived from a secret and the address in a secure way
(I don't know if AMD chose such a secure mode, or used some insecure homebrew tweaking scheme)
Is that documented in an actual AMD source, or even talk?