Beispiel #1
0
 public static void Random(SecureRandom r, uint[] z)
 {
     byte[] bb = new byte[5 * 4];
     do
     {
         r.NextBytes(bb);
         Pack.LE_To_UInt32(bb, 0, z, 0, 5);
     }while (0 == Nat.LessThan(5, z, P));
 }
Beispiel #2
0
 public static void Random(SecureRandom r, uint[] z)
 {
     byte[] bb = new byte[17 * 4];
     do
     {
         r.NextBytes(bb);
         Pack.LE_To_UInt32(bb, 0, z, 0, 17);
         z[16] &= P16;
     }while (0 == Nat.LessThan(17, z, P));
 }