gnu.crypto.key.dh
public abstract class DiffieHellmanKeyAgreement extends BaseKeyAgreementParty
The basic version of the Diffie-Hellman key agreement is described in the Handbook of Applied Cryptography [HAC] as follows:
RFC-2631 describes a Static-Static Mode of operations with Diffie-Hellman keypairs as follows:
"In Static-Static mode, both the sender and the recipient have a static (and certified) key pair. Since the sender's and recipient's keys are therefore the same for each message, ZZ will be the same for each message. Thus, partyAInfo MUST be used (and different for each message) in order to ensure that different messages use different KEKs. Implementations MAY implement Static-Static mode."
Reference:
Version: $Revision: 1.2 $
Field Summary | |
---|---|
static String | KA_DIFFIE_HELLMAN_OWNER_PRIVATE_KEY |
protected DHPrivateKey | ownerKey The key agreement party's private key. |
static String | SOURCE_OF_RANDOMNESS |
protected BigInteger | ZZ The shared secret key. |
Constructor Summary | |
---|---|
protected | DiffieHellmanKeyAgreement() |
Method Summary | |
---|---|
protected void | engineReset() |
protected byte[] | engineSharedSecret() |