3 ms·
If you want to see the code that does this: EnumSystemFiles: http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/freebl/win_rand.c#182 http://mxr.mo
by billzeller 17y ago
If you want to see the code that does this:
EnumSystemFiles: http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/freebl/win_rand.c#182 http://mxr.mozilla.org/mozilla-central/source/security/nss/l...
...called by rng_systemJitter: http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/freebl/win_rand.c#359 http://mxr.mozilla.org/mozilla-central/source/security/nss/l...
...called by rng_systemFromNoise: http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/freebl/sysrand.c#74 http://mxr.mozilla.org/mozilla-central/source/security/nss/l...
...called by RNG_SystemRNG: http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/freebl/win_rand.c#509 http://mxr.mozilla.org/mozilla-central/source/security/nss/l...
...called by (among others) rng_init: http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/freebl/drbg.c#379 http://mxr.mozilla.org/mozilla-central/source/security/nss/l...
- andrewf 17y agoMy best guess.. RNG_SystemRNG first tries to use a deprecated API (http://msdn.microsoft.com/en-us/library/aa387694(VS.85).aspx http://msdn.microsoft.com/en-us/library/aa387694(VS.85).aspx), then CryptoAPI, then this temp file entropy gathering approach. But if the deprecated API is _broken_, rather than absent from the DLL, then it will fall back to scanning temp files without ever trying CryptoAPI.