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 because I use it to decode the
response into the raw xml.

When I assign the modulus and exponent to the structure I do the following
to convert to a big number:

rsa_struct_ptr->n = BN_bin2bn(modulus, strlen(modulus), NULL);
rsa_struct_ptr->e = BN_bin2bn(exponent, strlen(exponent), NULL);

At the moment the error I get is "bignum routines:BN_mod_inverse:no inverse"
but I think this is because my exponent length is zero and maybe the modulus
length is incorrect.

Could you offer any further suggestions please?

Thanks

Chris




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

Reply via email to