Re: Problem with HMAC_Init_ex

2011-05-05 Thread Prashant Batra
good > idea to verify functions such as HMAC_CTX_init. See > http://www.openssl.org/docs/crypto/hmac.html. > > Jeff > > > > > On Wed, May 4, 2011 at 4:38 PM, derleader mail wrote: > >> > >> Hi all, > >> I am finding a strange problem with HM

Re: Problem with HMAC_Init_ex

2011-05-04 Thread Jeffrey Walton
u appear to ignore return values. It would probably be a good idea to verify functions such as HMAC_CTX_init. See http://www.openssl.org/docs/crypto/hmac.html. Jeff > > On Wed, May 4, 2011 at 4:38 PM, derleader mail wrote: >> >> Hi all, >> I am finding a strange problem wi

Re: Problem with HMAC_Init_ex

2011-05-04 Thread Prashant Batra
http://pastebin.com/0BG97RDH <http://pastebin.com/0BG97RDH>This does not contain complete source code, but will definitely give you the idea about what I am trying to do. Thanks, Prashant On Wed, May 4, 2011 at 4:38 PM, derleader mail wrote: > Hi all, > > I am finding a stran

Re: Problem with HMAC_Init_ex

2011-05-04 Thread derleader mail
Hi all, I am finding a strange problem with HMAC_Init_ex. After the call to this function the stack is getting corrupted. The sequence of functions used are- HMAC_CTX ctx ;HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, hash_key->v, hash_key->l, EVP_sha1(), NULL);

Problem with HMAC_Init_ex

2011-05-04 Thread Prashant Batra
Hi all, I am finding a strange problem with HMAC_Init_ex. After the call to this function the stack is getting corrupted. The sequence of functions used are- HMAC_CTX ctx ; HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, hash_key->v, hash_key->l, EVP_sha1(), NULL); Key->v points to 2