Re: using the bn library tips, faq or howto anywhere

2004-09-05 Thread Tan Eng Ten
Hmm, i think that depends on which BN_ functions. In your example, BN_bin2bn() returns a new BIGNUM object, so you do not need to BN_new(). b l wrote: Hi, If i reuse a BIGNUM created with BN_new() without freeing it first will i cause a memory leak? does the BIGNUM dynamically allocate memory eac

Re: using the bn library tips, faq or howto anywhere

2004-09-05 Thread b l
thanks Nils, brian --- Nils Larsch <[EMAIL PROTECTED]> wrote: > b l wrote: > > Hi, > > > > If i reuse a BIGNUM created with BN_new() without > > freeing it first will i cause a memory leak? > > no > > > does the BIGNUM dynamically allocate memory each > time > > it is used by certain functio

Re: using the bn library tips, faq or howto anywhere

2004-09-05 Thread Nils Larsch
b l wrote: Hi, If i reuse a BIGNUM created with BN_new() without freeing it first will i cause a memory leak? no does the BIGNUM dynamically allocate memory each time it is used by certain functions? yes (but only if it's required) for example i create BIGNUM * tempBN=BN_new(); i might make a call