Re: BN_new/BN_init/BN_free

2013-05-03 Thread Jakob Bohm
On 5/3/2013 4:57 AM, Tom marchand wrote: Good eye but that's not it. The code below should read BN_free(Res). Thanks. On May 2, 2013, at 10:42 PM, Jeremy Farrell wrote: From: Tom marchand [mailto:tpmarch...@gmail.com] Sent: Friday, May 03, 2013 2:55 AM I am using the following code to creat

Re: BN_new/BN_init/BN_free

2013-05-02 Thread Tom marchand
Good eye but that's not it. The code below should read BN_free(Res). Thanks. On May 2, 2013, at 10:42 PM, Jeremy Farrell wrote: From: Tom marchand [mailto:tpmarch...@gmail.com] Sent: Friday, May 03, 2013 2:55 AM I am using the following code to create a temporary BIGNUM to hold the resul

RE: BN_new/BN_init/BN_free

2013-05-02 Thread Jeremy Farrell
> From: Tom marchand [mailto:tpmarch...@gmail.com] > Sent: Friday, May 03, 2013 2:55 AM > > I am using the following code to create a temporary BIGNUM to hold > the result of multiplication: > > BIGNUM*Res; > > while(!Done) > { > Res=BN_new(); > BN_init(Res); > > BN_m

BN_new/BN_init/BN_free

2013-05-02 Thread Tom marchand
Hi, I am using the following code to create a temporary BIGNUM to hold the result of multiplication: BIGNUM *Res; while(!Done) { Res=BN_new(); BN_init(Res); BN_mul(Res,A,B,Ctx); BN_free(); } This code works with the exception that BN_free() is not releas