On October 15, 2003 11:47 pm, Brian Hatch wrote: > > As it turns out things are pretty smooth with the libraries, the one > > exception was that some of the PRNG-seeding techniques were crashing > > on some unimplemented win32 API functions so I've sent in some stubs > > for those that have since been applied to wine CVS. With respect to [snip] > Do these stubs actually provide randomness as if it's in a > Windows environment, is it just seeding with predictable > data, or is it snagging true entropy from the underlying > unix-like system (/dev/*random, etc) ?
No, the standard mechanism for this sort of thing is to stub the API implementation with a place-holder function that returns whatever is the appropriate equivalent of "failure". This way, linking works, and error-tolerant applications also work without anyone actually having to devise an appropriate posix-based implementation of the corresponding win32 concept. MS windows does this sort of thing itself too in cases where the presence of features in an API function depend on the system, version, drivers, etc. In this particular case, it was obscure APIs for walking stacks/heaps/etc that are still missing. This stub in Wine isn't a "problem" for PRNG security because the PRNG scores entropy sources as it adds them, so the "failure" of these APIs means that the PRNG doesn't consider them as contributing entropy either. The win32 PRNG implementation must be getting plenty of entropy successfully from the other sources it uses. OTOH what you're describing is a form of porting or simulation which isn't really appropriate here, as the desire is to have existing executables and libraries work as-is within Wine - even to the point that (in theory) you should be able to switch between dynamic linking with any mixture of Wine and/or MS versions of DLLs (except ntdll and kernel, for what should be fairly obvious reasons). Cheers, Geoff -- Geoff Thorpe [EMAIL PROTECTED] http://www.geoffthorpe.net/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
