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).
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
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
,
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
, 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
,
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
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
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
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
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.
>
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
11 matches
Mail list logo