MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / decrypt

Method decrypt

FHE/FHE_Keys.cpp:209–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208template<class T, class FD, class S>
209void 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
218Rq_Element FHE_SK::quasi_decrypt(const Ciphertext& c) const
219{

Callers 3

second_phaseFunction · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 4

pr_mismatchClass · 0.85
get_modulusMethod · 0.80
set_poly_modMethod · 0.45
get_iteratorMethod · 0.45

Tested by

no test coverage detected