Reg Ciphertext - Plaintext gate

hi there; I’m new to OpenFHE; I was wondering if there is a way to compute a Ciphertext - Plaintext binary operator without having to cast plaintext to a Ciphertext.

Please let me know how one could go about this w/o making the computation in both cipher text or decrypting of ciphertext.
Thanks

Yes, Ciphertext-Plaintext mixed operations are supported by schemes implemented in the pke module. There are many examples of these in pke/examples and pke/unittests.

1 Like

thanks -@ypolyakov - appreciate the help

one more add-on question: how do I find the method of implementing these operations ?

Open Template Class CryptoContextImpl — OpenFHE documentation and search for EvalMult(, EvalAdd(, and the like