Esempio n. 1
0
        private ECFieldElement GenerateMultiplyInputB_OpenSSLBug()
        {
            uint[] x = Nat256.Create();
            x[0] = (uint)Random.NextInt() >> 1;
            x[3] = 1;
            x[7] = 0xFFFFFFFF;

            return(FE(Nat256.ToBigInteger(x)));
        }
Esempio n. 2
0
        private ECFieldElement GenerateSquareInput_OpenSSLBug()
        {
            uint[] x = Nat256.Create();
            x[0] = (uint)Random.NextInt() >> 1;
            x[4] = 2;
            x[7] = 0xFFFFFFFF;

            return(FE(Nat256.ToBigInteger(x)));
        }
Esempio n. 3
0
 public override BigInteger ToBigInteger()
 {
     return(Nat256.ToBigInteger(x));
 }
 public override BigInteger ToBigInteger() =>
 Nat256.ToBigInteger(this.x);