-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
entropy_poll uses disallowed API when building for Windows Store #966
Comments
ARM Internal Ref: IOTSSL-1471 |
Oh, just as an FYI, this is also of course achievable now without any source code changes on the mbed side. If you are building for Windows Store add the |
Hi @borrrden thanks for your update. Yes, it can be done with your correct suggestion. We will internally decide whether we want to support this as a built-in platform entropy poll. Thanks again for your update and fix suggestion! |
Indeed I believe it is! You will lose support for Windows XP I think, if that is a concern, but otherwise the changes in entropy poll look almost identical to the ones I made. |
As a user, I'd like to have both versions so I could ifdef and build two different libraries if needed. I test with a VM once in a while. |
Closing as superseded/duplicated by #1227. |
CryptGenRandom
is not allowed for use in Windows Store (aka UWP) applications. There is another function calledBCryptGenRandom
which is allowed, but only supported on Vista onward. This may or may not be acceptable, but there is also an#ifdef
that can be used to choose. If you want I can make a PR, but it will consist of this around the top of entropy_poll.c:Of course if you have a better idea I am very open to it!
The text was updated successfully, but these errors were encountered: