Пример #1
0
 public FiniteFieldElement(BigInteger value, BigInteger prime)
 {
     Org.BouncyCastle.Math.BigInteger bouncy_q = prime.ToBouncyCastleBigInteger();
     Org.BouncyCastle.Math.BigInteger bouncy_x = value.ToBouncyCastleBigInteger();
     _field = new FpFieldElement(bouncy_q, bouncy_x);
 }
Пример #2
0
 public FiniteFieldElement Multiply(BigInteger x)
 {
     var xInnerField = new FpFieldElement(this._field.Q, x.ToBouncyCastleBigInteger());
     var xAsFiniteFieldElement = new FiniteFieldElement(xInnerField);
     return Multiply(xAsFiniteFieldElement);
 }