On Sat, Dec 03, 2005 at 10:25:19PM +1100, Steven Reddie wrote:

> Can you elaborate on the situation where repeatedly initializing and
> shutting down CryptoAPI causes a large memory leak,

See http://support.microsoft.com/default.aspx?scid=kb;en-us;258000

> particularly why you needed to do this.

It was simple more convenient and useful for me, in that I didn't have to
maintain state about Crypto API across entropy generation calls. Since
typically (in my code) CryptGenRandom will be called exactly once, at
application start up when the PRNG is seeded, there didn't seem to be much
reason to keep the whole thing around in memory throughout the application's
execution. It also made the code cleaner.

-Jack
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to