diff --git a/include/tlwe.hpp b/include/tlwe.hpp index a353208..6675767 100644 --- a/include/tlwe.hpp +++ b/include/tlwe.hpp @@ -112,17 +112,24 @@ typename P::T tlweSymIntDecrypt(const TLWE
&c, const Key
&key) return tlweSymIntDecrypt
(c, key);
}
-template &key)
{
vector (p[i] ? P::μ : -P::μ, key);
+ c[i] = tlweSymEncrypt (p[i] ? μ : -μ, key);
return c;
}
+template &key)
+{
+ return bootsSymEncrypt (p, key);
+}
+
template