- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am looking into passwod wallet by SGX_101 and I found out that there is a PEM key. Is this a key which used to encrypt wallet? or what is the purpose of that key? If this is the key to encrypt private data than how It is secure?
Also I want to know if we have our own key and we make it secure and stored it inside the SGX. Is there any code available to use that key and encrypt some data? Or any guidance on how to use our own key to encrypt data.
Please Guide me that would be helpful. Thank you in Advance.
Best Regards
ZiiDev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can actually use sgx_rsa_pub_encrypt_sha256 and sgx_rsa_pub_decrypt_sha256. These functions perform RSA encryption and decryption using the SHA-256 algorithm.
An example of it being used can be found here:
More information on SGX APIs can be found in the Developer Reference Guide here: https://download.01.org/intel-sgx/sgx-linux/2.16/docs/Intel_SGX_Developer_Reference_Linux_2.16_Open_Source.pdf
Sincerely,
Sahira R.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There are a couple types of keys used in SGX. There is an enclave signing key, which requires a key file that is in PEM format and unencrypted. Read more about enclave signing keys here.
There is also a key used to seal data in an enclave. You can read more about SGX sealing here.
A good example to look at is the SealUnseal sample in the SGX SDK.
Sincerely,
Sahira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for quick guidance. I also want to know about how we can use our own key for encryption inside the enclave. Assume that I have securely saved a key inside the SGX and now I want to utilize that key for encryption and decryption. How am I able to run it. Code snippet will also be very helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can actually use sgx_rsa_pub_encrypt_sha256 and sgx_rsa_pub_decrypt_sha256. These functions perform RSA encryption and decryption using the SHA-256 algorithm.
An example of it being used can be found here:
More information on SGX APIs can be found in the Developer Reference Guide here: https://download.01.org/intel-sgx/sgx-linux/2.16/docs/Intel_SGX_Developer_Reference_Linux_2.16_Open_Source.pdf
Sincerely,
Sahira R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also, you can refer to this community thread where a similar issue was addressed:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sahira_Intel,
Thank you so much for the guideline. I will let you know, if I face any other problem.
Best Regards
ZiiDev
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page