Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }