C# Class HabboEncryption.Security.Cryptography.DiffieHellman

Show file Open project: Joopie1994/HabboEncryption Class Usage Examples

Public Methods

Method Description
CalculateSharedKey ( BigInteger publicKey ) : BigInteger
CreateInstance ( DiffieHellman dh ) : DiffieHellman
CreateInstance ( int bitLength ) : DiffieHellman
DiffieHellman ( int bitLength, BigInteger p, BigInteger g ) : System

Private Methods

Method Description
GenerateKeys ( ) : void

Method Details

CalculateSharedKey() public method

public CalculateSharedKey ( BigInteger publicKey ) : BigInteger
publicKey BigInteger
return BigInteger

CreateInstance() public static method

public static CreateInstance ( DiffieHellman dh ) : DiffieHellman
dh DiffieHellman
return DiffieHellman

CreateInstance() public static method

public static CreateInstance ( int bitLength ) : DiffieHellman
bitLength int
return DiffieHellman

DiffieHellman() public method

public DiffieHellman ( int bitLength, BigInteger p, BigInteger g ) : System
bitLength int
p BigInteger
g BigInteger
return System