Hello,
> It should be
>
> pRSA->n = BN_bin2bn( pPublicModulus, nPublicModulusLength, NULL );
> pRSA->e = 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 [email protected]
Automated List Manager [EMAIL PROTECTED]