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

Method create_more

FHEOffline/SimpleEncCommit.cpp:162–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161template<class T,class FD,class S>
162void SimpleEncCommit<T,FD,S>::create_more()
163{
164 CODE_LOCATION
165 cout << "Generating more ciphertexts in round " << this->n_rounds << endl;
166 octetStream ciphertexts, cleartexts;
167 size_t prover_memory = this->generate_proof(this->c, this->m, ciphertexts, cleartexts);
168 size_t verifier_memory =
169 NonInteractiveProofSimpleEncCommit<FD>::create_more(ciphertexts,
170 cleartexts);
171 cout << "Done checking proofs in round " << this->n_rounds << endl;
172 this->n_rounds++;
173 this->cnt = this->proof.U - 1;
174 this->memory_usage.update("serialized ciphertexts",
175 ciphertexts.get_max_length());
176 this->memory_usage.update("serialized cleartexts", cleartexts.get_max_length());
177 this->volatile_memory = max(prover_memory, verifier_memory)
178 + ciphertexts.get_max_length() + cleartexts.get_max_length();
179}
180
181template <class FD>
182size_t NonInteractiveProofSimpleEncCommit<FD>::create_more(octetStream& ciphertexts,

Callers 1

runMethod · 0.80

Calls 15

maxFunction · 0.85
TimeScopeClass · 0.85
generate_proofMethod · 0.80
get_max_lengthMethod · 0.80
get_paramsMethod · 0.80
generate_ciphertextsMethod · 0.80
Stage_1Method · 0.80
has_optionMethod · 0.80
generate_challengeMethod · 0.80
commit_and_openMethod · 0.80
check_relativeMethod · 0.80
resize_preciseMethod · 0.80

Tested by

no test coverage detected