I'm having a problem generating a RSA private when numbits is > 64.  The RSA
key generation patterns for few bits size I've tried is shown below.  It's
seems to have no trouble when numbit is >= 32 and <= 64.

$WORK0 OLAPPOBJ 392> openssl genrsa 16  (does not generate key file to
stdout)
Generating RSA private key, 16 bit long modulus
.+++++++++++++++++++++++++++
.+++++++++++++++++++++++++++*.+++++++++++++++++++++++++++*.+++++++++++++++++
++++
++++++*

$WORK0 OLAPPOBJ 394> openssl genrsa 32 (generates key to stdout)
Generating RSA private key, 32 bit long modulus
.+++++++++++++++++++++++++++
.+++++++++++++++++++++++++++
e is 65537 (0x10001)
-----BEGIN RSA PRIVATE KEY-----
MCwCAQACBQDRw9HDAgMBAAECBQCjFwABAgMBAAECAwDRwwIBAQICLqsCAwCmlQ==
-----END RSA PRIVATE KEY-----

$WORK0 OLAPPOBJ 395> openssl genrsa 48  (generates key to stdout)
Generating RSA private key, 48 bit long modulus
.+++++++++++++++++++++++++++
.+++++++++++++++++++++++++++
e is 65537 (0x10001)
-----BEGIN RSA PRIVATE KEY-----
MDgCAQACBwCqTHb47aMCAwEAAQIHAKPPaA+KAQIEANkuLQIEAMi9DwIEAIgTtQIE
ALhkMQIEAKDZoA==
-----END RSA PRIVATE KEY-----

$WORK0 OLAPPOBJ 396> openssl genrsa 100  (unable to create the private key)
$WORK0 OLAPPOBJ 396..
Generating RSA private key, 100 bit long modulus

............................................................................
....
............................................................................
....
..................................................1:error:0306C072:bignum
routin
es:bn_expand2:bignum too long:$DATA5.OLCPBN.BNLIBC:-2680:
1:error:04069003:rsa routines:RSA_generate_key:BN
lib:$DATA5.OLCPRSA.RSAGENC:-14
608:
ABENDED: 1,236
CPU time: 0:01:13.222
1: Process terminated with warning diagnostics


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>From the pattern you can see that the 'P-Prime' itself is not generated.
And I'm not sure why.  The default numbits - 512 bits also fails with the
same error as numbits = 100.

If anybody is knows with openssl source; it might help to know how some of
the defines declared in the
header file bn.h are used

SIXTY_FOUR_BIT_LONG; SIXTY_FOUR_BIT; THIRTY_TWO_BIT; SIXTEEN_BIT

Built the BIGNUM routines with and without these defines defined and got the
same results.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I need to create a private key with atleast 512 bits; with 64 bit private
keys the Message Digest does not work.










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

Reply via email to