I've tested it and it looks good. I get back the values I have set.

Frank Wockenfuß

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Marek Marcola
Gesendet: Mittwoch, 1. August 2007 11:18
An: openssl-users@openssl.org
Betreff: Re: AW: RSA_public_decrypt problem

Hello,
> It should be
> 
> pRSA->n = BN_bin2bn( pPublicModulus, nPublicModulusLength, NULL ); e = 
> pRSA->BN_bin2bn( pPublicExponent, nPublicExponentLength, NULL );
After that, you may try:
  bn_hex = BN_bn2hex(pRSA->n);
  printf("n: %s\n", bn_hex);
  free(bn_hex);
  bn_hex = BN_bn2hex(pRSA->e);
  printf("e: %s\n", bn_hex);
  free(bn_hex);

to check that you have good big numbers.

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]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to