Return an enc/dec mask corresponding to this gate
for a given index into this gate's truth table
If index is negative then the enc/dec mask is calculated based
on this gate's evaluated garbled inputs.
Provide a garbeling code for the designated binary value
of code0/code1 concatenated with garbled perm (for the
purpose of transferring both in a single OT)