Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nindanaoto committed Aug 18, 2023
1 parent 49fe5d7 commit c76f164
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/gatebootstrappingtlwe2tlweraintt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ int main()
using bkP = TFHEpp::lvl01param;

TFHEpp::SecretKey sk;
TFHEpp::BootstrappingKeyRAINTT<bkP> bk;
TFHEpp::bkrainttgen<TFHEpp::lvl01param>(bk,sk);
std::unique_ptr<TFHEpp::BootstrappingKeyRAINTT<bkP>> bk;
bk = std::make_unique<TFHEpp::BootstrappingKeyRAINTT<bkP>>();
TFHEpp::bkrainttgen<TFHEpp::lvl01param>(*bk,sk);
std::array<TFHEpp::TLWE<typename bkP::domainP>, num_test> tlwe;
std::array<TFHEpp::TLWE<typename bkP::targetP>, num_test> bootedtlwe;

Expand All @@ -31,7 +32,7 @@ int main()

for (int test = 0; test < num_test; test++) {
TFHEpp::GateBootstrappingTLWE2TLWERAINTT<bkP>(
bootedtlwe[test], tlwe[test], bk, TFHEpp::μpolygen<typename bkP::targetP, bkP::targetP::μ>());
bootedtlwe[test], tlwe[test], *bk, TFHEpp::μpolygen<typename bkP::targetP, bkP::targetP::μ>());
}

end = std::chrono::system_clock::now();
Expand Down

0 comments on commit c76f164

Please sign in to comment.