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 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);
You can not use strlen() here. Use base64 decoded length.

Best regards,
--
Marek Marcola <[EMAIL PROTECTED]>

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

Reply via email to