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

Function Check_Decoding

FHEOffline/Verifier.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19template <class T, class FD, class S>
20bool Check_Decoding(const Plaintext<T,FD,S>& AE,bool Diag)
21{
22// // Now check decoding z[i]
23// if (!AE.to_type(0))
24// { cout << "Fail Check 4 " << endl;
25// return false;
26// }
27 if (Diag && !AE.is_diagonal())
28 {
29#ifdef VERBOSE
30 cout << "Fail Check 5 " << endl;
31#endif
32 return false;
33 }
34 return true;
35}
36
37template <>
38bool Check_Decoding(const vector<Proof::bound_type>& AE, bool Diag, const FFT_Data&)

Callers 2

Stage_2Method · 0.85
Stage_2Method · 0.85

Calls 4

is_diagonalMethod · 0.80
set_coeffMethod · 0.80
sizeMethod · 0.45
get_limbMethod · 0.45

Tested by

no test coverage detected