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-06 Thread Marek . Marcola
Hello, > 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 suitable for this function.

RE: RSA_verify problem

2008-02-04 Thread Chris Brown
ing of the SignedInfo element? Thank you for your continued help. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 5 February 2008 6:34 a.m. To: openssl-users@openssl.org Subject: RE: RSA_verify problem Hello,

RE: RSA_verify problem

2008-02-04 Thread Marek . Marcola
Hello, > 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. I am conf

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-30 Thread Marek . Marcola
Hello, > 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. Not exactly, mo

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-24 Thread Marek . Marcola
Hello > 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 because I use i

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-23 Thread Marek . Marcola
Hello, > I have attempted to ensure that both the modulus and signature are 128 bytes > long but I still cannot get this to work correctly. Below is a sample of xml > showing my KeyInfo. The Modulus is 172 characters long which I believe is > correct: > > > > > > 1RjaCKAG09orRlqo9U4SCt1

RE: RSA_verify problem

2008-01-22 Thread Chris Brown
Hi Thank you for your response and my apologies for not replying sooner- I was drafted from one project to another and have only just returned to this one. I am still having some trouble with this however. I have attempted to ensure that both the modulus and signature are 128 bytes long but I st

Re: RSA_verify problem

2007-11-23 Thread Marek Marcola
On Thu, 2007-11-22 at 15:31 +1300, Chris Brown wrote: > 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 possi

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