Package gnu.javax.crypto.key.dh

Class Summary

DHKeyPairPKCS8Codec
DHKeyPairRawCodec An object that implements the IKeyPairCodec operations for the Raw format to use with Diffie-Hellman keypairs.
DHKeyPairX509Codec
DiffieHellmanKeyAgreement The basic version of the Diffie-Hellman key agreement is described in the Handbook of Applied Cryptography [HAC] as follows:
  • An appropriate prime p and generator g of Zp* (2 <= g <= p-2) are selected and published.
  • A and B each send the other one message over an open channel; as a result, they both can then compute a shared secret key K which they can use to protect their future communication.
  • A chooses a random secret x, 1 <= x <= p-2, and sends B message (1) which is g^x mod p.
  • B chooses a random secret y, 1 <= y <= p-2, and sends A message (2) which is g^y mod p.
  • B receives message (1) and computes the shared key as K = (g^x)^y mod p.
DiffieHellmanReceiver This implementation is the receiver's part of the basic version of the Diffie-Hellman key agreement exchange (B in [HAC]).
DiffieHellmanSender This implementation is the sender's part of the basic version of the Diffie-Hellman key agreement exchange (A in [HAC]).
ElGamalKeyAgreement The ElGamal key agreement, also known as the half-certified Diffie-Hellman key agreement, is described in the Handbook of Applied Cryptography [HAC] as follows:
  • A sends to B a single message allowing one-pass key agreement.
  • A obtains an authentic copy of B's public key (p, g, yb), where yb = g**xb.
  • A chooses a random integer x, 1 <= x <= p-2, and sends B the message g**x.
ElGamalReceiver This implementation is the receiver's part of the ElGamal key agreement exchange (B in [HAC]).
ElGamalSender This implementation is the sender's part of the ElGamal key agreement exchange (A in [HAC]).
GnuDHKey A base asbtract class for both public and private Diffie-Hellman keys.
GnuDHKeyPairGenerator An implementation of a Diffie-Hellman keypair generator.
GnuDHPrivateKey An implementation of the Diffie-Hellman private key.
GnuDHPublicKey An implementation of the Diffie-Hellman public key.
RFC2631 An implementation of the Diffie-Hellman parameter generation as defined in RFC-2631.