C# Class Universal.Torrent.Client.Encryption.ModuloCalculator

Class to facilitate the calculation of a^b mod p, where a and b are large integers and p is the predefined prime from message stream encryption.
显示文件 Open project: haroldma/Universal.Torrent Class Usage Examples

Public Properties

Property Type Description
Two Universal.Torrent.Client.Encryption.BigInteger.BigInteger

Public Methods

Method Description
Calculate ( BigInteger a, BigInteger b ) : byte[]
Calculate ( BigInteger a, byte b ) : byte[]
Calculate ( byte a, BigInteger b ) : byte[]
Calculate ( byte a, byte b ) : byte[]

Method Details

Calculate() public static method

public static Calculate ( BigInteger a, BigInteger b ) : byte[]
a BigInteger
b BigInteger
return byte[]

Calculate() public static method

public static Calculate ( BigInteger a, byte b ) : byte[]
a BigInteger
b byte
return byte[]

Calculate() public static method

public static Calculate ( byte a, BigInteger b ) : byte[]
a byte
b BigInteger
return byte[]

Calculate() public static method

public static Calculate ( byte a, byte b ) : byte[]
a byte
b byte
return byte[]

Property Details

Two public_oe static_oe property

public static BigInteger,Universal.Torrent.Client.Encryption.BigInteger Two
return Universal.Torrent.Client.Encryption.BigInteger.BigInteger