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.
Exemplo n.º 1
0
 /// <summary>
 ///     Calculate 2^X mod P
 /// </summary>
 private void GenerateY()
 {
     _y = ModuloCalculator.Calculate(ModuloCalculator.Two, _x);
 }
Exemplo n.º 2
0
 protected virtual void DoneReceiveY()
 {
     S = ModuloCalculator.Calculate(_otherY, _x);
 }