Beispiel #1
0
 private static IEnumerable <Wire> InputWires(CircuitBuilder builder, int numberOfWires)
 {
     for (int i = 0; i < numberOfWires; ++i)
     {
         yield return(builder.Input());
     }
 }
Beispiel #2
0
        private static SecureWord Input(CircuitBuilder builder, int numberOfBits)
        {
            Wire[] wires = new Wire[numberOfBits];
            for (int i = 0; i < numberOfBits; ++i)
            {
                wires[i] = builder.Input();
            }

            return(new SecureWord(builder, wires));
        }