-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to use ring with os=none, for random ? #1380
Comments
What OS-less environment are you targeting? If it is SGX or UEFI then I'm somewhat familiar with them and I have thought about how to support them. |
Yes. UEFI is one use case. A bare metal Trust Domain (TD) in Intel TDX (https://software.intel.com/content/www/us/en/develop/articles/intel-trust-domain-extensions.html) is another use case. Similar to SGX. We are doing some POC work and hope to upstream step by step. How to support Random is still an open. If you have any thought, please share with us. |
For the time being, we can add a Going forward, I expect ring will provide a "userspace" CSPRNG for use within ring, including the public |
Closing as a duplicate of #744; I copied my comment above to that issue. |
Currently, the biggest problem is rand implementation (https://github.com/briansmith/ring/blob/main/src/rand.rs). It seems using target_os check the OS environment and implement different random function.
We are going to use ring in os=none. Is there any suggestion on how to enable that ?
Also, we would like to contribute patch, if update is required.
The text was updated successfully, but these errors were encountered: