RE: RSA_verify problem

2008-02-11 Thread Chris Brown
Hi, I have made the modifications you suggested and run the sample code for RSA_public_decrypt. I get the same error that I receive with RSA_verify- "error:0306E06C:bignum routines:BN_mod_inverse:no inverse". Do you have any further suggestions? I do not understand what I am doing wrong. Thank

RE: RSA_verify problem

2008-02-04 Thread Chris Brown
Hi thanks for the sample code you provided. I have tested the sample code and it runs without error however I am still using the default char N[], char E[] and msg[] values in the file. I am unclear what steps I need to take to convert the Modulus and Exponent strings from my XML into a format su

RE: RSA_verify problem

2008-02-03 Thread Chris Brown
Hi, thanks again for your help. I am now consistently getting an error "0306E06C:bignum routines:BN_mod_inverse:no inverse" when calling RSA_verify. I am still taking the following steps: 1) Extracting the 'SignedInfo' node and creating a 20 byte SHA1 hash of the value of it and its contents

RE: RSA_verify problem

2008-01-29 Thread Chris Brown
I am still having a problem running RSA_verify which returns 'Data too large for modulus' errors. If I check the big number value of the 'signatureValue' and 'Modulus' they are 268628280 and 268628488 respectively which obviously explains the error I am receiving. I have changed my code from using

RE: RSA_verify problem

2008-01-24 Thread Chris Brown
I have modified this and am passing the Base64 decoding length to Bn_bin2bn but I still get "data too large for modulus" errors. The modulus is 128 bytes, the exponent 3 bytes and the signature value 128 bytes. The message digest is 20 bytes. Is there anything else I can check? Thanks Chris _

RE: RSA_verify problem

2008-01-23 Thread Chris Brown
Thank you for your response. I am Base64 decoding the signatureValue, modulus and exponent but if I check the exponent length it is zero after decoding. The modulus length seems to vary after decoding maybe because there is a null in the buffer. I think that my Base64 decoding code is working ok

RE: RSA_verify problem

2008-01-22 Thread Chris Brown
preparing my modulus correctly before passing it to RSA_verify or indeed extracting the SignatureValue properly. For example should I be Base64 decoding any of these values first? Any further help anyone can offer would really be appreciated. Many Thanks Chris Brown

RSA_verify problem

2007-11-21 Thread Chris Brown
Hi all, I have a .Net webservice sending a Digital Signature within the soap response which I am attempting to verify using the Crypto library 'RSA_verify' function on an embedded MontaVista system. I am assuming that this is possible to do. I have extracted the 'SignedInfo' element from the xm

Re: Diagnosing a Double-Free

2005-03-20 Thread Chris Brown
I didn't get any replies to this when I sent it last week. Am I on the wrong list for this sort of query? Chris... === original message === I've manage to diagnose this down further to a snippet of code inside ERR_STATE *ERR_get_state(void) on roughly line 1022 of crypot/err/err.c of the 0.9.7-f

Re: Diagnosing a Double-Free

2005-03-17 Thread Chris Brown
I've manage to diagnose this down further to a snippet of code inside ERR_STATE *ERR_get_state(void) on roughly line 1022 of crypot/err/err.c of the 0.9.7-f-snapshot (from the 11th): if (ERRFN(thread_get_item)(ret) != ret) { cmb_ssl_dbg( "crypto thread_get_item failed" ); ERR_STATE_free(ret); /* co