diff --git a/include/tlwe.hpp b/include/tlwe.hpp index 6675767..4eb9406 100644 --- a/include/tlwe.hpp +++ b/include/tlwe.hpp @@ -112,7 +112,7 @@ typename P::T tlweSymIntDecrypt(const TLWE

&c, const Key

&key) return tlweSymIntDecrypt(c, key); } -template +template μ> std::vector> bootsSymEncrypt(const std::vector &p, const Key

&key) { @@ -127,7 +127,7 @@ template std::vector> bootsSymEncrypt(const std::vector &p, const Key

&key) { - return bootsSymEncrypt(p, key); + return bootsSymEncrypt(p, key); } template @@ -137,6 +137,13 @@ std::vector> bootsSymEncrypt(const std::vector &p, return bootsSymEncrypt

(p, sk.key.get

()); } +template μ> +std::vector> bootsSymEncrypt(const std::vector &p, + const SecretKey &sk) +{ + return bootsSymEncrypt(p, sk.key.get

()); +} + template std::vector bootsSymDecrypt(const std::vector> &c, const Key

&key)