classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: fix Diffie Hellman


From: Casey Marshall
Subject: [cp-patches] FYI: fix Diffie Hellman
Date: Sun, 2 Oct 2005 13:01:38 -0700

Hi,

This patch fixes the Diffie Hellman implementation. The problem was that it would not use the incoming intermediate key as-is, and would instead perform an emphemeral key generation each time.

I've limited the implementation to two-party only; I'm not quite sure how to do multi-party DH correctly, but two-party is what everyone uses.

Committed,

2005-10-02  Casey Marshall  <address@hidden>

    * gnu/javax/crypto/DiffieHellmanImpl.java (random): removed.
    (<init>): removed 'random' initialization.
    (engineDoPhase): use params from the incoming key; generate the
    intermediate result from the incoming key, not a random one; only
    support one-phase DH, for now.
    (engineInit): removed 'random' initialization.

Attachment: dh-fix.patch.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]