-
Notifications
You must be signed in to change notification settings - Fork 9
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
SGX detection confusion #9
Comments
While there is no extant hardware that has SGX but not RDRAND, this might not always be the case. Intel might design a new way for enclaves to get randomness securely in the future. This means you can't just assume RDRAND is available just by virtue of being compiled for SGX. The NB. For the |
I think this issue can be closed. |
Right now this create unconditionally fails if the
target_env
is SGX. However, RDRAND was introduced in Ivy Bridge and RDSEED was introduced in Brodwell, while SGX wasn't introduced until Skylake.@nagisa @akash-fortanix @jethrogb was there a reason why we assume RDRAND/RDSEED is not supported on SGX chips? I understand not trusting CPUID, but there isn't a chip out there that has SGX but doesn't have RDRAND.
The text was updated successfully, but these errors were encountered: