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

Method next

FHEOffline/SimpleEncCommit.cpp:79–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78template<class FD>
79void SimpleEncCommitFactory<FD>::next(Plaintext_<FD>& mess, Ciphertext& C)
80{
81 if (not has_left())
82 create_more();
83 mess = m[cnt];
84 C = c[cnt];
85
86 if (get_proof().use_top_gear(pk))
87 {
88 mess = mess + mess;
89 C = C + C;
90 }
91
92 cnt--;
93 n_calls++;
94}
95
96template <class FD>
97void SimpleEncCommitFactory<FD>::prepare_plaintext(PRNG& G)

Callers 4

ReshareFunction · 0.45
runMethod · 0.45
phi_NFunction · 0.45
mobiusFunction · 0.45

Calls 1

use_top_gearMethod · 0.80

Tested by

no test coverage detected