| 207 | |
| 208 | template<class T, class FD, class S> |
| 209 | void FHE_SK::decrypt(Plaintext<T,FD,S>& mess,const Ciphertext& c) const |
| 210 | { |
| 211 | if (T::characteristic_two ^ (pr == 2)) |
| 212 | throw pr_mismatch(); |
| 213 | |
| 214 | Rq_Element ans = quasi_decrypt(c); |
| 215 | mess.set_poly_mod(ans.get_iterator(), ans.get_modulus()); |
| 216 | } |
| 217 | |
| 218 | Rq_Element FHE_SK::quasi_decrypt(const Ciphertext& c) const |
| 219 | { |
no test coverage detected