Open khanhct-viosoft opened 6 years ago
I guess the _master_key is not Null terminated. Should be "new unsigned char[65]; memset(_master_key, 0, 65)"?
Thank @andyzyb But it don't work. I got master_key=036de217f5add709d5b2bcd0b8a0714fd656b76eaa8bb698e7448394f032e59d��k�p*
What is LL_CRITICAL? Please make sure when you pass the buffer to outside Enclave, it also be NULL terminated and pass the last "\0" out as well. It looks the print goes beyond the buffer boundary.
Thank @andyzyb it work. It is because of LL_CRITICAL.
Hi all, I have a issue related sgx memory. Please help me to fix it.
unsigned char* _master_key = new unsigned char[64]; memset(_master_key, 0, 64); memcpy(_master_key, (const unsigned char*)master_key, 64); LL_CRITICAL("master_key= %s \n", _master_key); delete[] _master_key;
Thank you!