I have more info on this now.  I just tried openssl with bsafe crypto-c
me.  Again, I get sporadic failures.  When I compare the 2 computed
shared secrets, I see that they are actually the same, except that bsafe
has some zero padded bytes at the beginning, even though it says it
computed 128 bytes.

So for example,

openssl[0, 127] == bsafe[1, 128], where bsafe[0] == 0
or
openssl[0, 127] == bsafe[2, 129], where bsafe[0] == bsafe[1] == 0

Anybody have any ideas.  I haven't tried MS CAPI to BSAFE yet, but I
have a feeling these 2 libs may work together.

Can somebody point me to a spec on the ASN.1 format for BIGNUM's over
the wire?


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stephen Henson
Sent: Thursday, April 19, 2007 3:14 AM
To: [email protected]
Subject: Re: BIGNUM library

On Wed, Apr 18, 2007, Edward Chan wrote:

> I was talking to the MS support guy who wrote that article.  He said
he
> has spoken with the engineers and assures me that it is not possible
> with DH keys.  
> 
> But if someone knows otherwise, I'd really love some sample code.
> 

Well the alternative of using a known key still exists: either a
symmetric or
asymmetric one.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to