or x1 G2 x1,0 or x1,1 a1,0 or a1,1 b1,0 or b1,1 Ea0,1,b0,0 (x0,0 ) Ea0,0,b0,1 (x0,0 ) Ea0,1,b0,1 (x0,1 ) Ea0,0,b0,1 (x0,0 ) Ea1,1,b1,1 (x1,1 ) Ea1,0,b1,1 (x1,0 ) Ea1,1,b1,0 (x1,0 ) Ea1,0,b1,0 (x1,0 ) x2,0 or x2,1 Chain gates to securely compute any discrete function! Ex0,0,x1,0 (x2,0 ) Ex0,1,x1,1 (x2,1 ) Ex0,1,x1,0 (x2,0 ) Ex0,0,x1,0 (x2,0 )