Re: BN_bin2bn problem

2006-10-23 Thread Kevin Coffman
On 10/20/06, Nils Larsch <[EMAIL PROTECTED]> wrote: Olga Kornievskaia wrote: ... > Ok. Thanks. I was hoping that a leading zero was the answer to my real > problem which is. I'm using the above "p" and a generator "g" = 2 (both > are well-known group 2 DH parameters described in the RFC 2412).

Re: BN_bin2bn problem

2006-10-21 Thread Marek Marcola
0xA6, 0x37, 0xED, 0x6B, > >>0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, > >>0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, > >>0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, > >>0x49, 0x28, 0x66, 0x51, 0xEC, 0xE6, 0x53, 0x81, > >>0xFF, 0xFF

Re: BN_bin2bn problem

2006-10-20 Thread Nils Larsch
Olga Kornievskaia wrote: ... Ok. Thanks. I was hoping that a leading zero was the answer to my real problem which is. I'm using the above "p" and a generator "g" = 2 (both are well-known group 2 DH parameters described in the RFC 2412). I initialize the DH structure with them and the then cal

Re: BN_bin2bn problem

2006-10-19 Thread Olga Kornievskaia
, 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE6, 0x53, 0x81, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }; BIGNUM *p; p = BN_bin2bn(pkinit_1024_dhprime, sizeof(pkinit_1024_dhprime), NULL); When I print the big number is comes out with a leading zero: 00:ff:ff:ff:ff:ff:ff:ff:ff:c9:0f:da:a2:21

Re: BN_bin2bn problem

2006-10-19 Thread Nils Larsch
, 0x51, 0xEC, 0xE6, 0x53, 0x81, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }; BIGNUM *p; p = BN_bin2bn(pkinit_1024_dhprime, sizeof(pkinit_1024_dhprime), NULL); When I print the big number is comes out with a leading zero: 00:ff:ff:ff:ff:ff:ff:ff:ff:c9:0f:da:a2:21:68: c2:34:c4:c6

BN_bin2bn problem

2006-10-18 Thread Olga Kornievskaia
, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }; BIGNUM *p; p = BN_bin2bn(pkinit_1024_dhprime, sizeof(pkinit_1024_dhprime), NULL); When I print the big number is comes out with a leading zero: 00:ff:ff:ff:ff:ff:ff:ff:ff:c9:0f:da:a2:21:68: c2:34:c4:c6:62:8b:80:dc:1c:d1:29:02:4e

BN_bin2bn() gets coredump in 0.9.7k

2006-09-19 Thread sivabalakrishnan
Hi,   I have compiled 64-bit OpenSSL 0.9.7k on HP-UX 11.23 PA architecture with optimization level +O3 (default). When i test  BN_bin2bn() function in cryto library with the following test program, it gets coredump.   Here is my test program

Re: How BN_bin2bn works

2004-05-03 Thread Richard Levitte - VMS Whacker
ngo> What I can't understand is how the function BN_bin2bn charlychango> works (or at least, I know what it does but I think charlychango> doesn't do it correctly). For example, imagine that I charlychango> have to transform the string "1234" to the BIGNUM->d charly

How BN_bin2bn works

2004-05-03 Thread Carlos Cabañero
L uses like the Arbitrary Precision Numbers (BIGNUM). What I can't understand is how the function BN_bin2bn works (or at least, I know what it does but I think doesn't do it correctly). For example, imagine that I have to transform the string "1234" to the BIGNUM->d (tha

Re: BN_bin2bn

2000-11-03 Thread Tom Biggs
At 06:39 PM 11/3/00 +0100, Luis wrote: >I need to make some operations on a text string, so I thougth to use the >BN library. > >The problem I found was when I tried BN_bin2bn to obtain a BN from a text >string, but when I use this BN on a multiplication I`ve got an error. >

BN_bin2bn

2000-11-03 Thread Luis Moraga
I need to make some operations on a text string, so I thougth to use the BN library. The problem I found was when I tried BN_bin2bn to obtain a BN from a text string, but when I use this BN on a multiplication I`ve got an error. Could you help me to codify a text string as a BN?. Thanks in