[gem5-users] Re: Initialization for memory encription in se mode

2021-12-17 Thread Portero, Antonio via gem5-users
Sehr geehrte Herren/Frauen, ich bin nicht im Büro und habe keine Internetverbindung. Erwarten Sie, dass sich meine Antwort bis zum 3. Januar verzögert. Mit freundlichen Grüßen, Antonio Dear Sir/Madam, I am out of office with low connection to internet. Expect delays in my answer till 3 Janu

[gem5-users] Re: Initialization for memory encription in se mode

2021-12-07 Thread hiromichi.haneda--- via gem5-users
I thought about encrypting the memory area where the binary was loaded once. How is the area where the binaries are loaded chosen? Is there a way to encrypt a specific memory area only once? Or any other good initialization ideas? Thank you. ___ gem5-use

[gem5-users] Re: Initialization for memory encription in se mode

2021-12-06 Thread hiromichi.haneda--- via gem5-users
Here is an example of the code. The cache is placed between the CPU and Enc/Dec Engine, and the data size is adjusted by setting the cacheline to 128 bits. if(pkt->isWrite()){ unsigned char dec1[16]; for (int i = 0; i < 16; ++i){ dec1[i] = *(pkt->getConstPtr() + i); } unsig