| 160 | |
| 161 | template<class T,class FD,class S> |
| 162 | void 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 | |
| 181 | template <class FD> |
| 182 | size_t NonInteractiveProofSimpleEncCommit<FD>::create_more(octetStream& ciphertexts, |
no test coverage detected