Evaluate a binary gate on encrypted values
eval_bin_gate(ctx, gate, ct1, ct2 = NULL, extended = FALSE)An LWECiphertext
A BinFHE context
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.
An LWECiphertext, OR a list of LWECiphertext
objects for the 3+-input vector form. When a list is
supplied, ct2 must be left at its default (NULL).
An LWECiphertext for the 2-input form, or
NULL (the default) when ct1 is a list. The vector
dispatch follows binfhecontext.h line 322.
Logical; if TRUE the result is left in the
extended ring dimension N rather than switched back to n.
Default FALSE, the C++ header default.