All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mkgray.security.dh.DiffieHellmanChannel

java.lang.Object
   |
   +----mkgray.security.dh.DiffieHellmanChannel

public class DiffieHellmanChannel
extends Object

Variable Index

 o cipher
 o generator
 o mod
 o privateKey
 o publicKey
 o sharedKey

Constructor Index

 o DiffieHellmanChannel()

Method Index

 o decrypt(byte[])
 o decrypt(String)
 o encrypt(byte[])
 o encrypt(String)
 o generateKeyPair(int)
 o generateSharedKey(BigInteger)
 o setCipher(BlockCipher)

Variables

 o mod
 public static BigInteger mod
 o generator
 public static BigInteger generator
 o privateKey
 public BigInteger privateKey
 o publicKey
 public BigInteger publicKey
 o sharedKey
 public BigInteger sharedKey
 o cipher
 public BlockCipher cipher

Constructors

 o DiffieHellmanChannel
 public DiffieHellmanChannel()

Methods

 o generateKeyPair
 public void generateKeyPair(int size)
 o generateSharedKey
 public void generateSharedKey(BigInteger otherPublicKey)
 o setCipher
 public void setCipher(BlockCipher c)
 o encrypt
 public String encrypt(String s)
 o decrypt
 public String decrypt(String s)
 o encrypt
 public byte[] encrypt(byte plainText[])
 o decrypt
 public byte[] decrypt(byte cipherText[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index