Ejemplo n.º 1
0
 public static uint[] FromBigInteger(BigInteger x)
 {
     uint[] array = Nat128.FromBigInteger(x);
     if (array[3] == 4294967293u && Nat128.Gte(array, P))
     {
         Nat128.SubFrom(P, array);
     }
     return(array);
 }
Ejemplo n.º 2
0
 public static uint[] FromBigInteger(BigInteger x)
 {
     uint[] z = Nat128.FromBigInteger(x);
     if (z[3] >= P3 && Nat128.Gte(z, P))
     {
         Nat128.SubFrom(P, z);
     }
     return(z);
 }
Ejemplo n.º 3
0
 public static uint[] FromBigInteger(BigInteger x)
 {
     uint[] numArray = Nat128.FromBigInteger(x);
     if ((numArray[3] == 0xfffffffd) && Nat128.Gte(numArray, P))
     {
         Nat128.SubFrom(P, numArray);
     }
     return(numArray);
 }