| 594 | } |
| 595 | |
| 596 | std::shared_ptr<TenSEALContext> TenSEALContext::copy() const { |
| 597 | TenSEALContextProto buffer = |
| 598 | this->save_proto(/*save_public_key=*/true, /*save_secret_key=*/true, |
| 599 | /*save_galois_keys=*/true, /*save_relin_keys=*/true); |
| 600 | return shared_ptr<TenSEALContext>( |
| 601 | new TenSEALContext(buffer, this->_threads)); |
| 602 | } |
| 603 | |
| 604 | void TenSEALContext::load(const std::string& input) { |
| 605 | TenSEALContextProto buffer; |
nothing calls this directly
no test coverage detected