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 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:

<KeyInfo>
 <KeyValue>
  <RSAKeyValue>
 
<Modulus>1RjaCKAG09orRlqo9U4SCt1ozqKhYNjzQR5Jn622GelJOmSpIYPN5sXQ1urfYvuIBkF
wm/H0gBDY94TxagtZwIpm/57dGq3
k6OJADZpnaRFwuPE8+82Q/qMK8ZxrFhGJhWPBnq/Y3LlTKeon9yurOKle3J0FsOx1ePE3ojkv+WU
=
   </Modulus>
   <Exponent>AQAB
   </Exponent>
  </RSAKeyValue>
 </KeyValue>
</KeyInfo>

The SignatureValue itself is also 172 characters long.

I am still confused about the exact sequence of steps I need to take once I
have Base64 decoded the response into the raw xml such as that above. I am
not certain I am extracting and 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

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to