public int next() { System.out.format("\t%d %d %d%n", x.get(8), y.get(10), z.get(10)); int m = maj(x.get(8), y.get(10), z.get(10)); System.out.println("M:" + m); if (m == x.get(8)) { int t = x.get(13) ^ x.get(16) ^ x.get(17) ^ x.get(18); x.push(t); } if (m == y.get(10)) { int t = y.get(20) ^ y.get(21); y.push(t); } if (m == z.get(10)) { int t = z.get(7) ^ z.get(20) ^ x.get(21) ^ x.get(22); z.push(t); } return (x.get(18) ^ y.get(21) ^ z.get(22)); }
public void clear() throws InterruptedException { clear.setState(false); clear.setState(true); push(); }