From a0fc65bf1205faf2066a0a3fe0ae6c9af0576e07 Mon Sep 17 00:00:00 2001 From: nindanaoto Date: Tue, 20 Feb 2024 14:48:13 +0000 Subject: [PATCH] use shared for usability --- include/cloudkey.hpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/include/cloudkey.hpp b/include/cloudkey.hpp index 0a69865..f400e7d 100644 --- a/include/cloudkey.hpp +++ b/include/cloudkey.hpp @@ -332,28 +332,28 @@ relinKeyFFT

relinKeyFFTgen(const Key

& key) struct EvalKey { lweParams params; - std::unique_ptr> bklvl01; - std::unique_ptr> bklvl02; - std::unique_ptr> bkfftlvl01; - std::unique_ptr> bkfftlvl02; - std::unique_ptr> bknttlvl01; - std::unique_ptr> bknttlvl02; - std::unique_ptr> iksklvl10; - std::unique_ptr> iksklvl20; - std::unique_ptr> iksklvl21; - std::unique_ptr> iksklvl22; - std::unique_ptr> subiksklvl21; + std::shared_ptr> bklvl01; + std::shared_ptr> bklvl02; + std::shared_ptr> bkfftlvl01; + std::shared_ptr> bkfftlvl02; + std::shared_ptr> bknttlvl01; + std::shared_ptr> bknttlvl02; + std::shared_ptr> iksklvl10; + std::shared_ptr> iksklvl20; + std::shared_ptr> iksklvl21; + std::shared_ptr> iksklvl22; + std::shared_ptr> subiksklvl21; std::unordered_map>> + std::shared_ptr>> privksklvl11; std::unordered_map>> + std::shared_ptr>> privksklvl21; std::unordered_map>> + std::shared_ptr>> privksklvl22; std::unordered_map< - std::string, std::unique_ptr>> + std::string, std::shared_ptr>> subprivksklvl21; EvalKey(SecretKey sk) { params = sk.params; }