aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/os_utils.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-02 18:34:37 -0400
committerJack Lloyd <[email protected]>2017-09-02 18:34:37 -0400
commit87f19427dbc3662636a84e56b7c7a8a49f1246df (patch)
tree267749bedfa5e4ee9490d3d50a83e08c50c097ea /src/lib/utils/os_utils.h
parente2036b0dba7084728b209fc3901398e8d46b72b9 (diff)
Refactor RNGs to support Windows Phone
This OS has its own crypto API and does not support CryptGenRandom. Splits System_RNG_Impl into distinct declarations one per implementation type. Easier to read now that we are up to 4 distinct versions. Removes the CryptoAPI entropy source, and replaces it with an entropy source that calls the system RNG. This is nominally a bit less flexible in that the entropy source allowed polling multiple providers (though we didn't actually make use of that). Plus side is it works on all systems. Currently the dev_random entropy source is still there because we do actually use it to poll both /dev/random and /dev/urandom, and it might be useful (on certain systems) to also poll a HW RNG, which are often assigned their own device node. This could debatably also be removed in favor of just reading the system RNG.
Diffstat (limited to 'src/lib/utils/os_utils.h')
0 files changed, 0 insertions, 0 deletions