diff options
author | Jack Lloyd <[email protected]> | 2017-09-02 18:34:37 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-02 18:34:37 -0400 |
commit | 87f19427dbc3662636a84e56b7c7a8a49f1246df (patch) | |
tree | 267749bedfa5e4ee9490d3d50a83e08c50c097ea /src/lib/rng/system_rng/info.txt | |
parent | e2036b0dba7084728b209fc3901398e8d46b72b9 (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/rng/system_rng/info.txt')
-rw-r--r-- | src/lib/rng/system_rng/info.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/rng/system_rng/info.txt b/src/lib/rng/system_rng/info.txt index 3df7dd387..1ea7eb388 100644 --- a/src/lib/rng/system_rng/info.txt +++ b/src/lib/rng/system_rng/info.txt @@ -24,4 +24,12 @@ openbsd qnx solaris windows +winphone </os> + +<libs> +windows -> advapi32.lib +winphone -> bcrypt.lib + +mingw -> advapi32 +</libs> |