diff --git a/test/gatebootstrappingtlwe2tlweraintt.cpp b/test/gatebootstrappingtlwe2tlweraintt.cpp index 022fe04..9abbc65 100644 --- a/test/gatebootstrappingtlwe2tlweraintt.cpp +++ b/test/gatebootstrappingtlwe2tlweraintt.cpp @@ -14,8 +14,9 @@ int main() using bkP = TFHEpp::lvl01param; TFHEpp::SecretKey sk; - TFHEpp::BootstrappingKeyRAINTT bk; - TFHEpp::bkrainttgen(bk,sk); + std::unique_ptr> bk; + bk = std::make_unique>(); + TFHEpp::bkrainttgen(*bk,sk); std::array, num_test> tlwe; std::array, num_test> bootedtlwe; @@ -31,7 +32,7 @@ int main() for (int test = 0; test < num_test; test++) { TFHEpp::GateBootstrappingTLWE2TLWERAINTT( - bootedtlwe[test], tlwe[test], bk, TFHEpp::μpolygen()); + bootedtlwe[test], tlwe[test], *bk, TFHEpp::μpolygen()); } end = std::chrono::system_clock::now();