[openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Michael Schmidt via RT
Hi, I think I've encountered a problem with BN_num_bits. I have experienced that BN_num_bits often returns 1 (sometimes more) bits less than the actual key size of a BIGNUM. With 2048 bit DH key pairs, I've often seen 2047 bit returned by BN_num_bits (checking the public key). I'm seeing a

[openssl.org #906] Re: Re: openssl pkcs8 -in rsakey -topk8 -v2 rc4 problem

2004-07-01 Thread murugesan via RT
Hello steve, I was out of office for the last one week and so I was not able to follow up with the core dump errrors. The following commands core dumps on my machine. 1) openssl asn1parse -in cacertificate.pem -strparse 29 [ cacertificate.pem = openssl req -new -x509

[openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Richard Levitte via RT
Well, that depends on what you mean with number of bits. Take a number like 0x0432, how many bits does it have? You could view it as a word, and say it has 16 bits, or you could look at it more closely, and find out that it has 11 *significant* bits. BN_num_bits() counts significant bits.

Re: [openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Michael Schmidt via RT
Richard Levitte via RT schrieb: Well, that depends on what you mean with number of bits. Take a number like 0x0432, how many bits does it have? You could view it as a word, and say it has 16 bits, or you could look at it more closely, and find out that it has 11 *significant* bits.

Re: [openssl.org #793] openssl 0.9.7c: Self test fail on IA64 HP-UX 11.22

2004-07-01 Thread Shaw Graham George via RT
Hi, I don't know if you have any responses about this, but this is still an error for openssl 0.9.7d, on HP-UX 11-23. But it is fixed by reducing the optimisation to +O2. Hope that's of use. G. --- George Shaw Senior Software Engineer Axway a Sopra Group company

Re: [openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Vadim Fedukovich
Michael Schmidt via RT wrote: Richard Levitte via RT schrieb: Well, that depends on what you mean with number of bits. Take a number like 0x0432, how many bits does it have? You could view it as a word, and say it has 16 bits, or you could look at it more closely, and find out that it has 11

[openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Richard Levitte via RT
[EMAIL PROTECTED] - Thu Jul 1 12:52:19 2004]: I'd suggest to clarify the man page of 'BN_num_bits': People (such as me) are tempted to use 'BN_num_bits' to get the key size (class) of a private or public key, and expect that its size matches the size (class) of its counterpart (public or

Re: [openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Michael Schmidt via RT
Richard Levitte via RT schrieb: [EMAIL PROTECTED] - Thu Jul 1 12:52:19 2004]: I'd suggest to clarify the man page of 'BN_num_bits': People (such as me) are tempted to use 'BN_num_bits' to get the key size (class) of a private or public key, and expect that its size matches the

[openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Richard Levitte via RT
You're welcome, and thanks for bringing this to our attention. Ticket resolved. [EMAIL PROTECTED] - Thu Jul 1 14:42:46 2004]: Perfect! Thanks a lot. -- Richard Levitte [EMAIL PROTECTED] __ OpenSSL Project

[openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Stephen Henson via RT
[levitte - Thu Jul 1 15:05:07 2004]: You're welcome, and thanks for bringing this to our attention. Ticket resolved. [EMAIL PROTECTED] - Thu Jul 1 14:42:46 2004]: Perfect! Thanks a lot. RSA, from memory, will always set the bits appropriately so the modulus size matches the

[openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Richard Levitte via RT
[steve - Thu Jul 1 15:17:46 2004]: RSA, from memory, will always set the bits appropriately so the modulus size matches the number of bits in genrsa (et al). I assume you mean the OpenSSL implementation of RSA, or is that an absolute rule? The bugdemo that is attached to the bug report

Re: [openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread Nils Larsch via RT
Michael Schmidt via RT wrote: Hi, I think I've encountered a problem with BN_num_bits. I have experienced that BN_num_bits often returns 1 (sometimes more) bits less than the actual key size of a BIGNUM. With 2048 bit DH key pairs, I've often seen 2047 bit returned by BN_num_bits

[openssl.org #908] Non-POSIX header in openssl/crypto/x509v3/pcy_node.c

2004-07-01 Thread Green, Paul via RT
The file openssl/crypto/x509v3/pcy_node.c references the non-POSIX header memory.h. However, if one simply removes this reference, the program still compiles, at least on my system. My feeling is that the line can simply be deleted. But if this causes problems, then it should just be replaced

[openssl.org #907] bug report - BN_num_bits returns incorrect key size

2004-07-01 Thread via RT
[EMAIL PROTECTED] - Thu Jul 1 12:52:19 2004]: Richard Levitte via RT schrieb: Well, that depends on what you mean with number of bits. Take a number like 0x0432, how many bits does it have? You could view it as a word, and say it has 16 bits, or you could look at it more closely, and