Evaluate a binary gate on encrypted values
Arguments
- ctx
A BinFHE context
- gate
A BinGate value. Two-input gates:
OR,AND,NOR,NAND,XOR,XNOR,XOR_FAST,XNOR_FAST. Three or more input gates (vector form):MAJORITY,AND3,OR3,AND4,OR4,CMUX.- ct1
An
LWECiphertext, OR a list ofLWECiphertextobjects for the 3+-input vector form. When a list is supplied,ct2must be left at its default (NULL).- ct2
An
LWECiphertextfor the 2-input form, orNULL(the default) whenct1is a list. The vector dispatch followsbinfhecontext.hline 322.
