Skip to content
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

less-safe-getrandom-custom-or-rdrand not working on target x86_64-fortanix-unknown-sgx #2043

Closed
DragonDev1906 opened this issue May 2, 2024 · 1 comment

Comments

@DragonDev1906
Copy link

I'm not sure about the current state of support for this target (see #775), but I'm not sure if you know about this already, hence this issue:

The x86_64-fortanix-unknown-sgx target has target_os = "unknown" instead of none for some reason. This means that although ring compiles for this target there is no way to use ring with RDRAND. The following feature flag + line works for embedded devices but not in SGX.

all(feature = "less-safe-getrandom-custom-or-rdrand", target_os = "none"),

Thus SystemRandom can never implement SecureRandom on that target.

Also see #744

@briansmith
Copy link
Owner

Closing this as a dupe of #775. I think now we're in a good position to do the SGX port, but it requires more work than getting ring::rand to build.

@briansmith briansmith mentioned this issue May 2, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants